Serenity/secrets/default.nix
2025-03-09 02:38:22 +10:00

23 lines
562 B
Nix

{ pkgs, config, inputs, flakePath, disksPath, primaryUser, homeDir, ... }:
{
imports = [ inputs.sops-nix.nixosModules.sops ];
environment = { systemPackages = with pkgs; [ age age-keygen sops ]; };
## Sops-nix config
sops = {
defaultSopsFile = ./secrets.yaml; # default sops file
defaultSopsFormat = "yaml"; # yaml for ease of use
age.keyFile = "${homeDir}/.config/sops/age/keys.txt"; # keyfile location
generateKey = true; # generate a new key if the one above is missing
secrets = {
loginPassword = { };
};
};
}