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
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
pkgs,
|
||||
user,
|
||||
constants,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
security.sudo.enable = true;
|
||||
@@ -9,8 +10,12 @@
|
||||
system.stateVersion = constants.stateVersions.nixos;
|
||||
time.timeZone = "UTC";
|
||||
|
||||
home-manager.sharedModules = [
|
||||
{_module.args = {inherit user constants inputs;};}
|
||||
];
|
||||
|
||||
nix = {
|
||||
settings.trusted-users = ["${user}"];
|
||||
settings.trusted-users = [user];
|
||||
gc.dates = "weekly";
|
||||
nixPath = ["nixos-config=/home/${user}/.local/share/src/nixos-config:/etc/nixos"];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user