mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-20 13:36:51 +02:00
feat: add gpg & password-store
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{pkgs, config, ...}: {
|
||||
programs.password-store = {
|
||||
enable = true;
|
||||
package = pkgs.pass.withExtensions (exts: [
|
||||
# support for one-time-password (OTP) tokens
|
||||
# NOTE: Saving the password and OTP together runs counter to the purpose of secondary verification!
|
||||
# exts.pass-otp
|
||||
|
||||
exts.pass-import # a generic importer tool from other password managers
|
||||
exts.pass-update # an easy flow for updating passwords
|
||||
]);
|
||||
# See the “Environment variables” section of pass(1) and the extension man pages for more information about the available keys.
|
||||
settings = {
|
||||
PASSWORD_STORE_DIR = "${config.xdg.dataHome}/password-store";
|
||||
PASSWORD_STORE_CLIP_TIME = "60";
|
||||
PASSWORD_STORE_GENERATED_LENGTH = "15";
|
||||
PASSWORD_STORE_ENABLE_EXTENSIONS = "true";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user