From e6f5baba683a515ca90ee62d0b06c724fa8e3693 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 9 Jan 2024 10:18:50 +0530 Subject: hosts: set hostname from flake --- flake.nix | 1 + hosts/cez/modules/network.nix | 1 - hosts/kay/configuration.nix | 1 - hosts/mox/configuration.nix | 1 - 4 files changed, 1 insertion(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 4307a26..df4d99a 100644 --- a/flake.nix +++ b/flake.nix @@ -15,6 +15,7 @@ makeHost = host: system: lib.nixosSystem { inherit system; modules = [ + { networking.hostName = host; } ./hosts/${host}/configuration.nix sops-nix.nixosModules.sops ]; diff --git a/hosts/cez/modules/network.nix b/hosts/cez/modules/network.nix index 429bf89..fb30056 100644 --- a/hosts/cez/modules/network.nix +++ b/hosts/cez/modules/network.nix @@ -2,7 +2,6 @@ { networking = { - hostName = "cez"; firewall.enable = false; wireless.iwd = { diff --git a/hosts/kay/configuration.nix b/hosts/kay/configuration.nix index a21f3a3..ad10a96 100644 --- a/hosts/kay/configuration.nix +++ b/hosts/kay/configuration.nix @@ -10,5 +10,4 @@ ]; boot.consoleLogLevel = 3; - networking.hostName = "kay"; } diff --git a/hosts/mox/configuration.nix b/hosts/mox/configuration.nix index 7ae99c1..456cd89 100644 --- a/hosts/mox/configuration.nix +++ b/hosts/mox/configuration.nix @@ -8,5 +8,4 @@ ]; services.openssh.ports = [ 22 465 ]; - networking.hostName = "mox"; } -- cgit v1.2.3