From 39369888981c32f9de30f66ebe20378a029e3f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 28 Dec 2025 20:09:38 +0100 Subject: [PATCH] tree-wide: stop passing hostname around --- nix/configurations/hetzner_benchmark.nix | 7 +------ nix/configurations/hydrogen.nix | 7 +------ nix/configurations/vanadium.nix | 7 +------ nix/nixosModules/common/network.nix | 3 --- 4 files changed, 3 insertions(+), 21 deletions(-) diff --git a/nix/configurations/hetzner_benchmark.nix b/nix/configurations/hetzner_benchmark.nix index 6201e6f1..38d0d479 100644 --- a/nix/configurations/hetzner_benchmark.nix +++ b/nix/configurations/hetzner_benchmark.nix @@ -25,7 +25,7 @@ in # # hostname # - { _module.args = { inherit hostname; }; } + { networking.hostName = hostname; } # # nixpkgs @@ -86,11 +86,6 @@ in }; hm.imports = [ - # - # hostname - # - { _module.args = { inherit hostname; }; } - # # home modules # diff --git a/nix/configurations/hydrogen.nix b/nix/configurations/hydrogen.nix index 5a303423..42554878 100644 --- a/nix/configurations/hydrogen.nix +++ b/nix/configurations/hydrogen.nix @@ -28,7 +28,7 @@ in # # hostname # - { _module.args = { inherit hostname; }; } + { networking.hostName = hostname; } # # nixpkgs @@ -97,11 +97,6 @@ in }; hm.imports = [ - # - # hostname - # - { _module.args = { inherit hostname; }; } - # # home modules # diff --git a/nix/configurations/vanadium.nix b/nix/configurations/vanadium.nix index 105dd10b..7ee11888 100644 --- a/nix/configurations/vanadium.nix +++ b/nix/configurations/vanadium.nix @@ -25,7 +25,7 @@ in # # hostname # - { _module.args = { inherit hostname; }; } + { networking.hostName = hostname; } # # nixpkgs @@ -147,11 +147,6 @@ in }; hm.imports = [ - # - # hostname - # - { _module.args = { inherit hostname; }; } - # # home modules # diff --git a/nix/nixosModules/common/network.nix b/nix/nixosModules/common/network.nix index 6d36fbfb..61785574 100644 --- a/nix/nixosModules/common/network.nix +++ b/nix/nixosModules/common/network.nix @@ -1,7 +1,4 @@ -{ hostname, ... }: { - networking.hostName = hostname; - services.openssh = { enable = true; settings = {