add keyring so 1password works properly again
This commit is contained in:
parent
70fdb9173a
commit
d2b4bd8012
1 changed files with 21 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue