feat: initial commit

This commit is contained in:
Zoty 2026-03-27 19:34:02 -03:00
commit 54c34faa64
Signed by: Zoty
SSH key fingerprint: SHA256:WsGEGivgl37t3Mth6uugXMOgMCTR7QolIepNbC+j/tA
17 changed files with 841 additions and 0 deletions

21
modules/secrets.nix Normal file
View file

@ -0,0 +1,21 @@
{ inputs, den, ... }: {
den.aspects.secrets.nixos = { ... }: {
imports = [ inputs.sops-nix.nixosModules.sops ];
sops = {
defaultSopsFile = ../secrets/secrets.yaml;
age.keyFile = "/etc/sops/age/keys.txt";
secrets = {
"user-password" = {
neededForUsers = true;
};
"ssh-private-key" = {
path = "/run/secrets/ssh-private-key";
owner = "zoty";
mode = "0400";
};
};
};
};
}