2024-07-26 23:07:07 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
2024-06-24 23:30:54 +00:00
|
|
|
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 = {
|
2024-07-26 23:07:07 +00:00
|
|
|
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
|
2024-06-24 23:30:54 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|