nixcfg/modules/nixos/desktop/addons/keyring/default.nix
2024-01-11 10:31:04 +00:00

18 lines
407 B
Nix

{ options, config, lib, pkgs, ... }:
with lib;
with lib.plusultra;
let cfg = config.plusultra.desktop.addons.keyring;
in
{
options.plusultra.desktop.addons.keyring = with types; {
enable = mkBoolOpt false "Whether to enable the gnome keyring.";
};
config = mkIf cfg.enable {
services.gnome.gnome-keyring.enable = true;
environment.systemPackages = with pkgs; [ gnome.seahorse ];
};
}