Pass, gnupg

This commit is contained in:
Aleksandr Lebedev 2025-03-06 11:29:56 +01:00
parent 2f388d2114
commit e0a2304dcc
3 changed files with 25 additions and 0 deletions

View file

@ -11,6 +11,16 @@
unstable-pkgs, unstable-pkgs,
... ...
}: }:
let ladybird = unstable-pkgs.ladybird.overrideAttrs(old: {
src = fetchFromGitHub {
owner = "LadybirdWebBrowser";
repo = "ladybird";
rev = "f148af0a9399139b85308ae1eacc8f0f738ed26c";
hash = "sha256-pmUpVa1l47m6mLilaMuxuIGNRkcOGscr5h6T0sNBXOM=";
};
version = "0-unstable-2025-03-04";
});
in
{ {
imports = [ imports = [
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
@ -27,6 +37,7 @@
./modules/services/autoupgrade ./modules/services/autoupgrade
./modules/sops ./modules/sops
./modules/emacs ./modules/emacs
./modules/gnupg
./hosts/${hwconfig.hostname} ./hosts/${hwconfig.hostname}
] ++ lib.optional (hwconfig.useImpermanence) ./modules/impermanence; ] ++ lib.optional (hwconfig.useImpermanence) ./modules/impermanence;
facter.reportPath = ./hosts/${hwconfig.hostname}/facter.json; facter.reportPath = ./hosts/${hwconfig.hostname}/facter.json;
@ -167,6 +178,7 @@
obs-studio obs-studio
neovim neovim
]; ];
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;
programs.kdeconnect.package = lib.mkDefault pkgs.kdePackages.kdeconnect-kde; programs.kdeconnect.package = lib.mkDefault pkgs.kdePackages.kdeconnect-kde;

View file

@ -0,0 +1,12 @@
{ pkgs,... }:
{
programs.gnupg.agent = {
enable = true;
settings = {
pinentry-program = lib.mkForce "${pkgs.pinentry-curses}/bin/pinentry-curses";
};
};
environment.systemPackages = with pkgs;[
(pass.withExtensions (exts: with exts;[pass-otp]))
];
}

View file

@ -18,6 +18,7 @@
"nixos-config" "nixos-config"
"blender" "blender"
".gnupg" ".gnupg"
".password-store"
".ssh" ".ssh"
".emacs.d" ".emacs.d"
".local/share/keyrings" ".local/share/keyrings"