added sops-nix
This commit is contained in:
22
modules/features/sops/default.nix
Normal file
22
modules/features/sops/default.nix
Normal 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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user