mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 07:29:43 +00:00
21 lines
591 B
Nix
21 lines
591 B
Nix
{pkgs, lib, config, ...}: let
|
|
inherit (lib) mkIf;
|
|
deviceType = config.myOptions.device.roles.type;
|
|
acceptedTypes = ["laptop" "desktop"];
|
|
in {
|
|
config = mkIf (builtins.elem deviceType acceptedTypes) {
|
|
services = {
|
|
udev.packages = with pkgs; [gnome.gnome-settings-daemon];
|
|
gnome.gnome-keyring.enable = true;
|
|
};
|
|
|
|
# seahorse is an application for managing encryption keys
|
|
# and passwords in the gnome keyring
|
|
programs.seahorse.enable = true;
|
|
|
|
xdg.portal.config.common = {
|
|
"org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
|
|
};
|
|
};
|
|
}
|