16 lines
355 B
Nix
Executable File
16 lines
355 B
Nix
Executable File
{lib, config, username, ...}: let
|
|
home = "/home/${username}";
|
|
in {
|
|
options = {
|
|
passConfig.enable = lib.mkEnableOption "enables my pass config";
|
|
};
|
|
config = lib.mkIf config.passConfig.enable {
|
|
programs.password-store = {
|
|
enable = true;
|
|
settings = {
|
|
PASSWORD_STORE_DIR = "${home}/.password-store";
|
|
};
|
|
};
|
|
};
|
|
}
|