1password

This commit is contained in:
2026-06-20 02:38:37 +09:00
parent 416390ce95
commit ae9744af4e
5 changed files with 41 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
{
lib,
config,
...
}:
let
cfg = config.my.applications."1password";
in
{
options.my.applications."1password" = {
enable = lib.mkEnableOption "1Password password manager";
};
config = lib.mkIf cfg.enable {
programs._1password.enable = true;
programs._1password-gui = {
enable = true;
polkitPolicyOwners = [ "moons" ];
};
};
}
+1
View File
@@ -1,5 +1,6 @@
{
imports = [
./1password.nix
./arduino.nix
./btop
./chrome.nix
+1
View File
@@ -8,6 +8,7 @@
./file-manager.nix
./graphic.nix
./jp-input.nix
./password.nix
./terminal.nix
];
}
+17
View File
@@ -0,0 +1,17 @@
{
lib,
config,
...
}:
let
cfg = config.my.features.gui.password;
in
{
options.my.features.gui.password = {
enable = lib.mkEnableOption "GUI password manager";
};
config = lib.mkIf cfg.enable {
my.applications."1password".enable = true;
};
}