task | add password-store

This commit is contained in:
Don Harper 2026-05-30 21:56:59 -05:00
parent 79c46d8106
commit 956c4cd619
4 changed files with 46 additions and 1 deletions

View file

@ -17,6 +17,7 @@
./newsboat.nix
./nixvim.nix
# ./nvf.nix
./pass.nix
./ssh.nix
./taskwarrior.nix
./topgrade.nix

41
home/common/pass.nix Normal file
View file

@ -0,0 +1,41 @@
{
osConfig,
pkgs,
lib,
...
}: let
inherit (lib) mkIf;
inherit (osConfig) modules;
sys = modules.system;
in {
config = {
programs = {
# password-store pass
password-store = {
enable = true;
package = pkgs.pass.withExtensions (exts: [exts.pass-otp exts.pass-audit exts.pass-update exts.pass-import]);
settings = {
PASSWORD_STORE_KEY = "CCD8E76F07EA701B";
PASSWORD_STORE_CLIP_TIME = "30";
PASSWORD_STORE_GENERATED_LENGTH = "120";
PASSWORD_STORE_CHARACTER_SET = "A-Za-z0-9!@#$%";
PASSWORD_STORE_CHARACTER_SET_NO_SYMBOLS = "A-Za-z0-9";
PASSWORD_STORE_ENABLE_EXTENSIONS = "true";
};
};
};
services = {
# Enable pass to integrate with the libsecret D-Bus API for password management
pass-secret-service = {
enable = true;
};
};
# home.file.".config/pass-git-helper" = {
# source = ./git-pass-mapping;
# recursive = true;
# };
};
}