mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-26 11:21:34 +01:00
refactor: centrally manage the network configuration of all hosts in homelab
feat: new host - tailscalw-gw
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
system,
|
||||
specialArgs,
|
||||
nixos-modules,
|
||||
home-module,
|
||||
home-module ? null,
|
||||
}: let
|
||||
inherit (specialArgs) username;
|
||||
in
|
||||
@@ -22,14 +22,19 @@ in
|
||||
proxmox.qemuConf.name = "${config.networking.hostName}-nixos-${config.system.nixos.label}";
|
||||
};
|
||||
}
|
||||
]
|
||||
++ (
|
||||
if (home-module != null)
|
||||
then [
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.extraSpecialArgs = specialArgs;
|
||||
home-manager.users."${username}" = home-module;
|
||||
}
|
||||
];
|
||||
home-manager.extraSpecialArgs = specialArgs;
|
||||
home-manager.users."${username}" = home-module;
|
||||
}
|
||||
]
|
||||
else []
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user