Adding gnome-keychain support

This commit is contained in:
James Patrick 2022-07-16 18:48:31 -04:00
parent 4e6b969cc7
commit e5259868bd
3 changed files with 17 additions and 2 deletions

View File

@ -2,6 +2,7 @@
let let
graphical = config.this.graphical; graphical = config.this.graphical;
power = config.this.system.power; power = config.this.system.power;
keyring = config.this.system.keyring;
in with lib; { in with lib; {
config = mkIf graphical.enable { config = mkIf graphical.enable {
services.gvfs.enable = true; services.gvfs.enable = true;
@ -29,9 +30,9 @@ in with lib; {
libgnome-keyring libgnome-keyring
nautilus nautilus
pomodoro pomodoro
seahorse
sushi sushi
] ++ optionals (power.enable) [ gnome-power-manager ]; ] ++ optionals (power.enable) [ gnome-power-manager ]
++ optionals (keyring.enable) [ seahorse ];
}; };
}; };
} }

View File

@ -6,6 +6,7 @@
./flatpak.nix ./flatpak.nix
./fonts.nix ./fonts.nix
./gtk.nix ./gtk.nix
./keyring.nix
./power.nix ./power.nix
./xdg.nix ./xdg.nix
./yubikey.nix ./yubikey.nix

View File

@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
let cfg = config.this.system.keyring;
in with lib; {
options.this = {
system.keyring.enable = mkOption {
default = true;
type = with types; bool;
};
};
# options.this.system.keyring.enable = mkEnableOption "keyring";
config = mkIf cfg.enable { services.gnome.gnome-keyring.enable = true; };
}