Files
nixos-config/hosts/polaris/secrets/default.nix
2025-11-29 17:05:31 +01:00

35 lines
712 B
Nix

{
config,
pkgs,
inputs,
...
}:
{
imports = [ inputs.sops-nix.homeManagerModules.sops ];
sops = {
age.keyFile = "${config.xdg.configHome}/sops/age/keys.txt";
defaultSopsFile = ./secrets.yaml;
secrets = {
radicale_pass = { };
university_calendar_url = { };
# sshconfig = { path = "${config.home.homeDirectory}/.ssh/config"; };
};
};
home.file.".config/nixos/.sops.yaml".text = ''
keys:
- &primary age122w85pqj508ukv0rd388mahecgfckmpgnsgz0zcyec37ljae2epsdnvxpl
creation_rules:
- path_regex: hosts/polaris/secrets/secrets.yaml$
key_groups:
- age:
- *primary
'';
home.packages = with pkgs; [
sops
age
];
}