From 22c74c30b97dbf25857f8c874581e638cb5e8d0a Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 24 Jan 2025 03:21:54 +0100 Subject: Take machine hostname from flake inputs Signed-off-by: Mel --- machines/bismuth/default.nix | 2 -- machines/graphite/default.nix | 2 -- modules/common.nix | 2 ++ 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/machines/bismuth/default.nix b/machines/bismuth/default.nix index e7418a9..165b944 100644 --- a/machines/bismuth/default.nix +++ b/machines/bismuth/default.nix @@ -11,8 +11,6 @@ ../../modules/nvidia.nix ]; - networking.hostName = "Bismuth"; - # expose vm web interface to tailnet services.tailscale.extraUpFlags = [ "--advertise-routes=192.168.122.100/32" diff --git a/machines/graphite/default.nix b/machines/graphite/default.nix index 03934ff..8bbb903 100644 --- a/machines/graphite/default.nix +++ b/machines/graphite/default.nix @@ -10,7 +10,5 @@ ../../modules/syncthing.nix ]; - networking.hostName = "Graphite"; - system.stateVersion = "24.05"; } diff --git a/modules/common.nix b/modules/common.nix index 0d3f815..bfa71ca 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -23,10 +23,12 @@ # it makes every nixos rebuild very slow. documentation.man.generateCaches = false; + networking.hostName = me; # use corsac dns server networking.nameservers = let corsacTailnet = "100.64.100.100"; in [ corsacTailnet ]; + services.resolved.enable = true; services = { -- cgit 1.4.1