gpg
This commit is contained in:
parent
af9d267869
commit
854844e039
3 changed files with 17 additions and 1 deletions
8
modules/home/caem/core/security.nix
Normal file
8
modules/home/caem/core/security.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
programs.gpg = {
|
||||
enable = true;
|
||||
homedir = "${config.xdg.dataHome}";
|
||||
};
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
{ username, config, ... }:
|
||||
|
||||
{
|
||||
programs.gnupg.agent = {
|
||||
|
@ -31,4 +31,11 @@
|
|||
};
|
||||
|
||||
sops.age.keyFile = "/nix/config/keys.txt";
|
||||
|
||||
environment.persistence."/nix/persist" = {
|
||||
users."${username}".directories = [
|
||||
".ssh"
|
||||
"${config.xdg.dataHome}/gnupg"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
"videos"
|
||||
"programming"
|
||||
".ssh"
|
||||
".local/gnupg"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue