diff --git a/modules/nixos/security/keyring/default.nix b/modules/nixos/security/keyring/default.nix new file mode 100644 index 0000000..6fef051 --- /dev/null +++ b/modules/nixos/security/keyring/default.nix @@ -0,0 +1,21 @@ +{ + options, + config, + lib, + namespace, + ... +}: +with lib; +with lib.${namespace}; +let + cfg = config.${namespace}.security.keyring; +in +{ + options.${namespace}.security.keyring = with types; { + enable = mkBoolOpt true "Whether to enable gnome keyring."; + }; + + config = mkIf cfg.enable { + services.gnome.gnome-keyring.enable = true; + }; +}