Add a role for gnome keyring.
This commit is contained in:
parent
d0968ab836
commit
ddd3200ca6
@ -31,14 +31,15 @@
|
||||
./roles/firewall
|
||||
./roles/flux
|
||||
./roles/fonts
|
||||
./roles/image_based_appliance
|
||||
./roles/gcloud
|
||||
./roles/git
|
||||
./roles/global_options
|
||||
./roles/gnome_keyring
|
||||
./roles/gnuplot
|
||||
./roles/gpg
|
||||
./roles/graphics
|
||||
./roles/hydra
|
||||
./roles/image_based_appliance
|
||||
./roles/iso
|
||||
./roles/iso_mount
|
||||
./roles/jujutsu
|
||||
|
||||
@ -92,6 +92,7 @@
|
||||
me.gcloud.enable = true;
|
||||
me.git.config = ../../roles/git/files/gitconfig_work;
|
||||
me.git.enable = true;
|
||||
me.gnome_keyring.enable = true;
|
||||
me.gnuplot.enable = true;
|
||||
me.gpg.enable = true;
|
||||
me.graphical = true;
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user