id: { lib, ... }: with lib; let client = if id != null then (import ../clients.nix).${id} else null; in { imports = [ ./hardware.nix ./gpu.nix ./home.nix ./users.nix ./desktop.nix ./programs.nix ./docker.nix ]; deployment = optionalAttrs (client != null) { targetHost = client.ip; tags = [ "client" ]; }; _module.args = { inherit id client; }; networking = { hostName = mkForce (if id != null then "client-${id}" else "client"); #useDHCP = mkForce true; }; services.hardware.bolt.enable = true; security.rtkit.enable = true; services.avahi = { enable = true; nssmdns4 = true; nssmdns6 = true; }; system.stateVersion = "24.05"; }