add keyring so 1password works properly again
This commit is contained in:
parent
80a4ed8f70
commit
3f4392c233
21
modules/nixos/security/keyring/default.nix
Normal file
21
modules/nixos/security/keyring/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.${namespace}.security.keyring;
|
||||
in
|
||||
{
|
||||
options.${namespace}.security.keyring = with types; {
|
||||
enable = mkBoolOpt true "Whether to enable gnome keyring.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue