From b44d627e433d2fbd69ae8f9b53727eb1ab4bffc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sat, 12 Apr 2025 14:36:43 +0200 Subject: [PATCH 1/2] feat: address hosts by hostname --- machines/moritz-desktop/configuration.nix | 2 +- machines/moritz-server/configuration.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/machines/moritz-desktop/configuration.nix b/machines/moritz-desktop/configuration.nix index b3f5dc7..8a47f8c 100644 --- a/machines/moritz-desktop/configuration.nix +++ b/machines/moritz-desktop/configuration.nix @@ -27,7 +27,7 @@ # Set this for clan commands use ssh i.e. `clan machines update` # If you change the hostname, you need to update this line to root@ # This only works however if you have avahi running on your admin machine else use IP - clan.core.networking.targetHost = "root@192.168.0.14"; + clan.core.networking.targetHost = "root@moritz-desktop"; my = { ai.enable = true; diff --git a/machines/moritz-server/configuration.nix b/machines/moritz-server/configuration.nix index 92f80c8..547e782 100644 --- a/machines/moritz-server/configuration.nix +++ b/machines/moritz-server/configuration.nix @@ -9,7 +9,7 @@ # Set this for clan commands use ssh i.e. `clan machines update` # If you change the hostname, you need to update this line to root@ # This only works however if you have avahi running on your admin machine else use IP - clan.core.networking.targetHost = "root@192.168.0.3"; + clan.core.networking.targetHost = "root@moritz-server"; networking = { interfaces.enp2s0 = { From b0b8a370416f8ef1fbea81f62b6b954507645859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sat, 12 Apr 2025 14:37:04 +0200 Subject: [PATCH 2/2] feat: add hostname for my remarkable --- modules/shared.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/shared.nix b/modules/shared.nix index d7457ea..75d24ad 100644 --- a/modules/shared.nix +++ b/modules/shared.nix @@ -9,6 +9,8 @@ clan-core.clanModules.machine-id ]; + networking.hosts."fd77:acc0:1d56:2265:499:9367:28e0:97d3" = [ "moritz-remarkable" ]; + # Locale service discovery and mDNS services.avahi.enable = true;