mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 06:08:11 +09:00
1password
This commit is contained in:
@@ -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,5 +1,6 @@
|
||||
{
|
||||
imports = [
|
||||
./1password.nix
|
||||
./arduino.nix
|
||||
./btop
|
||||
./chrome.nix
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
./file-manager.nix
|
||||
./graphic.nix
|
||||
./jp-input.nix
|
||||
./password.nix
|
||||
./terminal.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -12,6 +12,7 @@
|
||||
graphic.enable = true;
|
||||
capture.enable = true;
|
||||
fileManager.enable = true;
|
||||
password.enable = true;
|
||||
};
|
||||
services.kde.enable = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user