fish: rename repo path variables

This commit is contained in:
Primrose 2024-11-15 17:56:07 +01:00
parent acfc46aeb5
commit d49561657e
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
7 changed files with 19 additions and 22 deletions

View file

@ -6,24 +6,21 @@
}:
let
pass_enabled = config.programs.password-store.enable;
cfg = config.programs.password-store;
in
pass_cfg = {
{
home.packages = lib.mkIf cfg.enable [
pkgs.pwgen
pkgs.diceware
];
programs.password-store = lib.mkIf cfg.enable {
package = pkgs.pass.withExtensions (exts: [
exts.pass-otp
exts.pass-import
]);
settings = {
PASSWORD_STORE_DIR = "${config.home.homeDirectory}/repos/leana/vault";
};
};
extra_programs = [
pkgs.pwgen
pkgs.diceware
];
in
{
home.packages = lib.mkIf pass_enabled extra_programs;
programs.password-store = lib.mkIf pass_enabled pass_cfg;
}