From 1bae841fc561099527ec7323b90273562ed0a767 Mon Sep 17 00:00:00 2001 From: cswimr Date: Fri, 22 Nov 2024 09:10:24 -0500 Subject: [PATCH] use `hostname` to set `networking.hostName` --- nixos/configuration.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index ca6736f..a0aa01f 100755 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -1,7 +1,7 @@ # Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ pkgs, ... }: +{ pkgs, hostname, ... }: { nix = { settings = { @@ -17,7 +17,7 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - networking.hostName = "eclipse"; # Define your hostname. + networking.hostName = hostname; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Configure network proxy if necessary