From 7aba98b341fca5a9109ea6bfb633a7aead1f5b41 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 10 Feb 2022 19:25:28 -0800 Subject: hosts: set hostname from configuration --- hosts/carmel/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'hosts') diff --git a/hosts/carmel/default.nix b/hosts/carmel/default.nix index 00f370c..11105d3 100644 --- a/hosts/carmel/default.nix +++ b/hosts/carmel/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, hostname, ... }: { imports = @@ -8,17 +8,13 @@ ../../modules/desktop ]; - nix = { - package = pkgs.nixUnstable; - }; - # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; time.timeZone = "America/Los_Angeles"; - networking.hostName = "carmel"; # Define your hostname. + networking.hostName = hostname; networking.wireless.enable = false; networking.interfaces.enp9s0.useDHCP = true; -- cgit 1.4.1