18 lines
335 B
Nix
Executable file
18 lines
335 B
Nix
Executable file
{ config, ... }:
|
|
let
|
|
defaultSopsFile = ../.. + "/system/dev/${config.networking.hostName}/sops/secret.yaml";
|
|
ageKeyFile = "/var/lib/sops-nix/key.txt";
|
|
in
|
|
{
|
|
sops = {
|
|
defaultSopsFile = defaultSopsFile;
|
|
|
|
age = {
|
|
keyFile = ageKeyFile;
|
|
};
|
|
};
|
|
|
|
environment.variables = {
|
|
SOPS_AGE_KEY_FILE = ageKeyFile;
|
|
};
|
|
}
|