23 lines
457 B
Nix
23 lines
457 B
Nix
{inputs, ...}: {
|
|
flake.nixosModules.sops = {
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
imports = [inputs.sops-nix.nixosModules.default];
|
|
|
|
sops = {
|
|
age.keyFile = "/home/user01/Projects/dendritic-tutorial/age.txt";
|
|
defaultSopsFile = ./secrets.yaml;
|
|
|
|
secrets = {
|
|
secret = {};
|
|
something = {};
|
|
};
|
|
templates = {
|
|
"secret-value.env".content = "${config.sops.placeholder.something}";
|
|
};
|
|
};
|
|
};
|
|
}
|