23 lines
450 B
Nix
23 lines
450 B
Nix
{ config, options, pkgs, lib, ... }:
|
|
with lib;
|
|
{
|
|
options.modules.shell.pass = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
|
|
config = mkIf config.modules.shell.pass.enable {
|
|
my = {
|
|
packages = with pkgs; [
|
|
(pass.withExtensions (exts: [
|
|
exts.pass-otp
|
|
exts.pass-genphrase
|
|
]))
|
|
];
|
|
env.PASSWORD_STORE_DIR = "$HOME/.secrets/password-store";
|
|
};
|
|
};
|
|
}
|