change encypt key from gnupg to age. And encrypt dae url
This commit is contained in:
parent
7d52c44603
commit
991a8b4bbc
9 changed files with 73 additions and 44 deletions
|
|
@ -16,6 +16,7 @@
|
|||
++ [
|
||||
./nix.nix
|
||||
./home.nix
|
||||
./sops.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
|
|||
20
nixos/modules/sops.nix
Normal file
20
nixos/modules/sops.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
rootPath,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = {
|
||||
sops.defaultSopsFile = rootPath + "/secrets/general.yaml";
|
||||
sops.age =
|
||||
let
|
||||
unixName = config.youthlic.home-manager.unixName;
|
||||
cfg = config.users.users."${unixName}";
|
||||
in
|
||||
{
|
||||
keyFile = "${cfg.home}/.config/sops/age/keys.txt";
|
||||
sshKeyPaths = [ ];
|
||||
generateKey = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue