From f6c989d9fffc245a72d727d570e41bf3bb8df985 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 12 Jan 2020 18:28:02 -0500 Subject: [PATCH] Set hostname at entrypoint --- default.nix | 2 ++ machines/aka.nix | 2 -- machines/ao.nix | 1 - machines/kuro.nix | 1 - machines/shiro.nix | 1 - 5 files changed, 2 insertions(+), 5 deletions(-) diff --git a/default.nix b/default.nix index d84e2f4d..fb52c0c1 100644 --- a/default.nix +++ b/default.nix @@ -3,6 +3,8 @@ device: { pkgs, options, lib, config, ... }: { + networking.hostName = device; + imports = [ /etc/nixos/hardware-configuration.nix diff --git a/machines/aka.nix b/machines/aka.nix index 69336d42..ff2f53bc 100644 --- a/machines/aka.nix +++ b/machines/aka.nix @@ -12,8 +12,6 @@ ]; - networking.hostName = "aka"; networking.networkmanager.enable = true; - time.timeZone = "America/Toronto"; } diff --git a/machines/ao.nix b/machines/ao.nix index ac50654f..fad0998b 100644 --- a/machines/ao.nix +++ b/machines/ao.nix @@ -14,7 +14,6 @@ ]; - networking.hostName = "ao"; networking.networkmanager.enable = true; time.timeZone = "America/Toronto"; diff --git a/machines/kuro.nix b/machines/kuro.nix index 752686b7..91fba2e5 100644 --- a/machines/kuro.nix +++ b/machines/kuro.nix @@ -33,7 +33,6 @@ ]; - networking.hostName = "kuro"; networking.networkmanager.enable = true; time.timeZone = "America/Toronto"; diff --git a/machines/shiro.nix b/machines/shiro.nix index 292f9dc5..c857e57e 100644 --- a/machines/shiro.nix +++ b/machines/shiro.nix @@ -37,7 +37,6 @@ in { ]; theme.wallpaper = ; - networking.hostName = "shiro"; networking.wireless.enable = true; time.timeZone = "America/Toronto";