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