use hostname
to set networking.hostName
This commit is contained in:
parent
43c3949137
commit
1bae841fc5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue