Files
lux-old/modules/secrets/sops.nix
2026-02-28 19:41:14 +01:00

30 lines
650 B
Nix

{ inputs, den, ... }:
{
den.default.includes = [
(
{ host, ... }:
{
nixos =
{ pkgs, ... }:
{
imports = [ inputs.sops-nix.nixosModules.sops ];
sops = {
age.keyFile = "/home/${(builtins.head (builtins.attrValues host.users)).name}/.config/sops/age/keys.txt";
defaultSopsFile = ./secrets.yaml;
secrets = {
hashed-password-kiri.neededForUsers = true;
};
};
environment.systemPackages = with pkgs; [
sops
age
];
};
}
)
];
}