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

@@ -14,6 +14,7 @@
networking
hyprland
theming
sops
];
in {
imports = modules;

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}";
};
};
};
}

View File

@@ -81,6 +81,7 @@
v = lib.getExe inputs'.nvim.packages.default;
ff = lib.getExe pkgs.fastfetch;
cat = lib.getExe pkgs.bat;
secret = "cat /run/secrets/secret-value";
};
# Can also be zshrc.path, and path will take precedence over content.
zshrc.content = ''