From f6010a968c6ae560f23c2314e38b621cf3124052 Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Wed, 18 Sep 2024 03:13:34 +0100 Subject: [PATCH] treewide: specify hostname in host configs --- flake.nix | 2 -- hosts/kalessin/default.nix | 1 + hosts/kilgharrah/default.nix | 1 + hosts/orm/default.nix | 1 + hosts/tohru/default.nix | 1 + hosts/yevaud/default.nix | 1 + 6 files changed, 5 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 0a20e84..384fd1d 100644 --- a/flake.nix +++ b/flake.nix @@ -51,8 +51,6 @@ }; defaults = { name, nodes, ... }: { - networking.hostName = name; - nix.settings.experimental-features = "nix-command flakes"; nix.nixPath = [ "nixpkgs=flake:nixpkgs" ]; nixpkgs.config.allowUnfree = true; diff --git a/hosts/kalessin/default.nix b/hosts/kalessin/default.nix index d1a568b..aeb39a6 100644 --- a/hosts/kalessin/default.nix +++ b/hosts/kalessin/default.nix @@ -5,6 +5,7 @@ ./hardware-configuration.nix ]; + networking.hostName = "kalessin"; networking.hostId = "534b538e"; boot.loader.systemd-boot.enable = true; diff --git a/hosts/kilgharrah/default.nix b/hosts/kilgharrah/default.nix index 0ebc881..00daac3 100644 --- a/hosts/kilgharrah/default.nix +++ b/hosts/kilgharrah/default.nix @@ -9,6 +9,7 @@ ]; nixpkgs.hostPlatform = "x86_64-linux"; + networking.hostName = "kilgharrah"; networking.hostId = "72885bb5"; qenya.base-graphical.enable = true; diff --git a/hosts/orm/default.nix b/hosts/orm/default.nix index 3753fcc..c76bd6b 100644 --- a/hosts/orm/default.nix +++ b/hosts/orm/default.nix @@ -5,6 +5,7 @@ ./hardware-configuration.nix ]; + networking.hostName = "orm"; networking.hostId = "00000000"; boot.loader.systemd-boot.enable = true; diff --git a/hosts/tohru/default.nix b/hosts/tohru/default.nix index a071c2b..c5b1fef 100644 --- a/hosts/tohru/default.nix +++ b/hosts/tohru/default.nix @@ -11,6 +11,7 @@ ]; nixpkgs.hostPlatform = "x86_64-linux"; + networking.hostName = "tohru"; networking.hostId = "31da19c1"; qenya.base-graphical.enable = true; diff --git a/hosts/yevaud/default.nix b/hosts/yevaud/default.nix index eebd456..b620f43 100644 --- a/hosts/yevaud/default.nix +++ b/hosts/yevaud/default.nix @@ -5,6 +5,7 @@ ./hardware-configuration.nix ]; + networking.hostName = "yevaud"; networking.hostId = "09673d65"; boot.loader.systemd-boot.enable = true;