diff options
| author | Mel <einebeere@gmail.com> | 2025-01-24 03:21:54 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2025-01-24 03:23:28 +0100 |
| commit | 22c74c30b97dbf25857f8c874581e638cb5e8d0a (patch) | |
| tree | d72ca6d784a7bbce2840002860f8899f23ba02ef | |
| parent | 4af08c9c9c15fa3325b91d187cf17b35184a457c (diff) | |
| download | minerals-22c74c30b97dbf25857f8c874581e638cb5e8d0a.tar.zst minerals-22c74c30b97dbf25857f8c874581e638cb5e8d0a.zip | |
Take machine hostname from flake inputs
Signed-off-by: Mel <einebeere@gmail.com>
| -rw-r--r-- | machines/bismuth/default.nix | 2 | ||||
| -rw-r--r-- | machines/graphite/default.nix | 2 | ||||
| -rw-r--r-- | 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 = { |
