summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-01-09 10:18:50 +0530
committersinanmohd <sinan@sinanmohd.com>2024-01-09 10:19:13 +0530
commite6f5baba683a515ca90ee62d0b06c724fa8e3693 (patch)
treec9db84b8f4c0591c6a7faec18d1184d74d461f68
parentebf41683da9c54a80fd274da8520079a6b338567 (diff)
hosts: set hostname from flake
-rw-r--r--flake.nix1
-rw-r--r--hosts/cez/modules/network.nix1
-rw-r--r--hosts/kay/configuration.nix1
-rw-r--r--hosts/mox/configuration.nix1
4 files changed, 1 insertions, 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";
}