helm/modules/shell/pass.nix
2020-03-29 01:55:14 -04:00

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";
};
};
}