Add a role for gnome keyring.
This commit is contained in:
23
nix/configuration/roles/gnome_keyring/default.nix
Normal file
23
nix/configuration/roles/gnome_keyring/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
options.me = {
|
||||
gnome_keyring.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Whether we want to install gnome_keyring.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (config.me.gnome_keyring.enable && config.me.graphical) {
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user