added sops-nix

This commit is contained in:
2026-11-14 17:04:25 +00:00
parent f08d778a56
commit 507b4fcefd
5 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
{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}";
};
};
};
}