From f8817dd1a551c8b3e9045de8abfcc7e8bfc98d26 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 22 Nov 2021 15:35:09 +0100 Subject: [PATCH] set the hostname in the hardware config --- common/desktop.nix | 2 -- hardware/asus/configuration.nix | 1 + hardware/vm/configuration.nix | 1 + hardware/xps5530/configuration.nix | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/desktop.nix b/common/desktop.nix index 6651da0..8bf1494 100644 --- a/common/desktop.nix +++ b/common/desktop.nix @@ -13,8 +13,6 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - networking.hostName = "staubfinger"; # Define your hostname. - # Set your time zone. time.timeZone = "Europe/Zurich"; diff --git a/hardware/asus/configuration.nix b/hardware/asus/configuration.nix index eb0f5e8..f476130 100644 --- a/hardware/asus/configuration.nix +++ b/hardware/asus/configuration.nix @@ -11,6 +11,7 @@ ./hardware-configuration.nix ]; + networking.hostName = "staubfinger"; # Define your hostname. networking.interfaces.enp0s20u1.useDHCP = true; environment.variables = { diff --git a/hardware/vm/configuration.nix b/hardware/vm/configuration.nix index de78a6c..b7c9c01 100644 --- a/hardware/vm/configuration.nix +++ b/hardware/vm/configuration.nix @@ -11,6 +11,7 @@ ./hardware-configuration.nix ]; + networking.hostName = "nixos-vm"; # Define your hostname. networking.interfaces.enp0s3.useDHCP = true; environment.variables = { diff --git a/hardware/xps5530/configuration.nix b/hardware/xps5530/configuration.nix index 79015e5..0380578 100644 --- a/hardware/xps5530/configuration.nix +++ b/hardware/xps5530/configuration.nix @@ -11,6 +11,7 @@ ./hardware-configuration.nix ]; + networking.hostName = "gwyn"; # Define your hostname. networking.interfaces.enp0s3.useDHCP = true; environment.variables = {