Preserve gpg directory.
This commit is contained in:
parent
20c1c46d12
commit
27060fed8d
@ -9,10 +9,13 @@
|
|||||||
./boot.nix
|
./boot.nix
|
||||||
./zfs.nix
|
./zfs.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
|
./roles/graphics
|
||||||
./roles/sway
|
./roles/sway
|
||||||
|
./roles/firefox
|
||||||
./roles/emacs
|
./roles/emacs
|
||||||
./roles/git
|
./roles/git
|
||||||
./roles/fonts
|
./roles/fonts
|
||||||
|
./roles/gpg
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
10
nix/configuration/roles/firefox/default.nix
Normal file
10
nix/configuration/roles/firefox/default.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
firefox
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
25
nix/configuration/roles/gpg/default.nix
Normal file
25
nix/configuration/roles/gpg/default.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
7
nix/configuration/roles/graphics/default.nix
Normal file
7
nix/configuration/roles/graphics/default.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [];
|
||||||
|
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
}
|
@ -211,10 +211,8 @@ in
|
|||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
alacritty
|
alacritty
|
||||||
firefox
|
|
||||||
pcmanfm
|
pcmanfm
|
||||||
];
|
];
|
||||||
hardware.graphics.enable = true;
|
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
WLR_RENDERER_ALLOW_SOFTWARE = "1";
|
WLR_RENDERER_ALLOW_SOFTWARE = "1";
|
||||||
@ -231,8 +229,12 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.gnupg.agent = {
|
environment.persistence."/state" = {
|
||||||
enable = true;
|
hideMounts = true;
|
||||||
enableSSHSupport = true;
|
users.talexander = {
|
||||||
|
files = [
|
||||||
|
".cache/wofi-drun" # Execution history for wofi to sort results
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user