mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-15 08:57:18 +00:00
26 lines
599 B
Nix
26 lines
599 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"];
|
|
};
|
|
};
|
|
}
|