2020-03-28 22:48:43 -07:00
|
|
|
{ config, options, pkgs, lib, ... }:
|
|
|
|
with lib;
|
2019-08-06 10:56:54 -07:00
|
|
|
{
|
2020-03-28 22:48:43 -07:00
|
|
|
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";
|
|
|
|
};
|
2019-08-06 10:56:54 -07:00
|
|
|
};
|
|
|
|
}
|