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,7 +2,7 @@
|
||||
inputs,
|
||||
pkgs,
|
||||
user,
|
||||
constants,
|
||||
hostname,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
@@ -20,11 +20,6 @@
|
||||
];
|
||||
|
||||
home-manager.users.${user} = {
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
_module.args = {inherit user constants inputs;};
|
||||
imports = [
|
||||
inputs.nixvim.homeModules.nixvim
|
||||
../../profiles/atuin.nix
|
||||
@@ -60,4 +55,6 @@
|
||||
};
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
networking.hostName = hostname;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user