diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-01-09 10:18:50 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-01-09 10:19:13 +0530 |
commit | e6f5baba683a515ca90ee62d0b06c724fa8e3693 (patch) | |
tree | c9db84b8f4c0591c6a7faec18d1184d74d461f68 | |
parent | ebf41683da9c54a80fd274da8520079a6b338567 (diff) |
hosts: set hostname from flake
-rw-r--r-- | flake.nix | 1 | ||||
-rw-r--r-- | hosts/cez/modules/network.nix | 1 | ||||
-rw-r--r-- | hosts/kay/configuration.nix | 1 | ||||
-rw-r--r-- | hosts/mox/configuration.nix | 1 |
4 files changed, 1 insertions, 3 deletions
@@ -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"; } |