pass: move from module to user config

This commit is contained in:
Jordan Holt 2025-03-16 14:12:55 +00:00
parent 7879fda102
commit d8e0e78728
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520
9 changed files with 12 additions and 31 deletions

View File

@ -29,7 +29,6 @@
vector.enable = true;
};
libreoffice.enable = true;
pass.enable = true;
qbittorrent.enable = true;
thunderbird.enable = true;
};

View File

@ -27,7 +27,6 @@
modules = {
programs = {
firefox.enable = true;
pass.enable = true;
qbittorrent.enable = true;
};
};

View File

@ -28,7 +28,6 @@
modules = {
programs = {
firefox.enable = true;
pass.enable = true;
qbittorrent.enable = true;
};
services = {

View File

@ -51,7 +51,6 @@
modules = {
programs = {
firefox.enable = true;
pass.enable = true;
recording = {
audio.enable = true;
};

View File

@ -70,7 +70,6 @@
};
libreoffice.enable = true;
lutris.enable = true;
pass.enable = true;
qbittorrent.enable = true;
recording = {
audio.enable = true;

View File

@ -8,7 +8,6 @@
./programs/graphics.nix
./programs/libreoffice.nix
./programs/lutris.nix
./programs/pass.nix
./programs/qbittorrent.nix
./programs/recording.nix
./programs/slack.nix

View File

@ -1,25 +0,0 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.programs.pass;
in
{
options.modules.programs.pass = {
enable = lib.mkOption {
default = false;
example = true;
};
};
config = lib.mkIf cfg.enable {
home.programs.password-store = {
enable = true;
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
};
};
}

View File

@ -34,6 +34,7 @@ in
./git.nix
./gpg.nix
./neovim.nix
./pass.nix
./shell.nix
];

11
users/jordan/pass.nix Normal file
View File

@ -0,0 +1,11 @@
{
pkgs,
...
}:
{
home.programs.password-store = {
enable = true;
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
};
}