Files
nixos-config/hosts/chidi/secrets.nix
Christoph Schmatzler 1d8a0c660c refactor: reduce duplication and improve consistency across hosts
- Centralize home-manager _module.args in profiles/nixos.nix via sharedModules
- Add lib/secrets.nix with mkSyncthingSecrets helper for DRY secret definitions
- Move syncthing device IDs to lib/constants.nix
- Standardize hostname handling (Darwin hosts now use hostname arg)
- Add missing networking.hostName to tahani
- Fix redundant string interpolations
2025-12-23 14:14:47 +00:00

15 lines
238 B
Nix

{
user,
hostname,
...
}: let
secrets = import ../../lib/secrets.nix;
in {
sops.age.keyFile = "/Users/${user}/.config/sops/age/keys.txt";
sops.secrets = secrets.mkSyncthingSecrets {
inherit hostname user;
isDarwin = true;
};
}