Preserve gpg directory.

This commit is contained in:
Tom Alexander 2024-12-20 16:50:27 -05:00
parent 20c1c46d12
commit 27060fed8d
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
5 changed files with 52 additions and 5 deletions

View File

@ -9,10 +9,13 @@
./boot.nix
./zfs.nix
./network.nix
./roles/graphics
./roles/sway
./roles/firefox
./roles/emacs
./roles/git
./roles/fonts
./roles/gpg
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];

View File

@ -0,0 +1,10 @@
{ config, lib, pkgs, ... }:
{
imports = [];
environment.systemPackages = with pkgs; [
firefox
];
}

View File

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
{
imports = [];
# Fetch public keys:
# gpg --locate-keys tom@fizz.buzz
#
# gpg -vvv --auto-key-locate local,wkd --locate-keys tom@fizz.buzz
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
environment.persistence."/persist" = {
hideMounts = true;
users.talexander = {
directories = [
{ directory = ".gnupg"; user = "talexander"; group = "talexander"; mode = "0700"; } # Local keyring
];
};
};
}

View File

@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
imports = [];
hardware.graphics.enable = true;
}

View File

@ -211,10 +211,8 @@ in
environment.systemPackages = with pkgs; [
alacritty
firefox
pcmanfm
];
hardware.graphics.enable = true;
environment.sessionVariables = {
WLR_RENDERER_ALLOW_SOFTWARE = "1";
@ -231,8 +229,12 @@ in
];
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
environment.persistence."/state" = {
hideMounts = true;
users.talexander = {
files = [
".cache/wofi-drun" # Execution history for wofi to sort results
];
};
};
}