- 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
20 lines
308 B
Nix
20 lines
308 B
Nix
{
|
|
user,
|
|
hostname,
|
|
...
|
|
}: let
|
|
secrets = import ../../lib/secrets.nix;
|
|
in {
|
|
sops.secrets =
|
|
secrets.mkSyncthingSecrets {
|
|
inherit hostname user;
|
|
isDarwin = false;
|
|
}
|
|
// {
|
|
tahani-paperless-password = {
|
|
sopsFile = ../../secrets/tahani-paperless-password;
|
|
format = "binary";
|
|
};
|
|
};
|
|
}
|