Squash merge sops-nix into main
This commit is contained in:
parent
135df24a36
commit
21fc0ee318
15 changed files with 180 additions and 17 deletions
25
system/modules/sops-nix.nix
Normal file
25
system/modules/sops-nix.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
defaultSopsFile = ../.. + "/system/dev/${config.networking.hostName}/secret.yaml";
|
||||
ageKeyFile = "/var/lib/sops-nix/key.txt";
|
||||
in
|
||||
{
|
||||
sops = {
|
||||
defaultSopsFile = defaultSopsFile;
|
||||
|
||||
age = {
|
||||
keyFile = ageKeyFile;
|
||||
};
|
||||
|
||||
secrets = {
|
||||
"wireguard/privateKey" = { };
|
||||
"wireguard/conf" = { };
|
||||
"nextcloud/adminPassword" = { };
|
||||
"step_ca/password" = { };
|
||||
};
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
SOPS_AGE_KEY_FILE = ageKeyFile;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue