Make the NixOS hostname configurable
This commit is contained in:
parent
e87b718592
commit
7c72cc4d5d
3 changed files with 13 additions and 5 deletions
system/nixos
|
@ -1,4 +1,4 @@
|
|||
{ inputs, desktop ? false, pkgs, system }:
|
||||
{ inputs, desktop ? false, hostname, pkgs, system }:
|
||||
|
||||
let
|
||||
pkgsUnstable = inputs.nixpkgs-unstable.legacyPackages."${system}";
|
||||
|
@ -37,7 +37,7 @@ in
|
|||
DefaultTimeoutStopSec=10s
|
||||
'';
|
||||
|
||||
# networking.hostName = "nixedo"; # Define your hostname.
|
||||
networking.hostName = hostname;
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
# Configure network proxy if necessary
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{ inputs, pkgs, self, system, username }:
|
||||
|
||||
{ desktop ? false }:
|
||||
{ desktop ? false, hostname }:
|
||||
|
||||
let
|
||||
configuration = import ./configuration.nix { inherit desktop inputs pkgs system; };
|
||||
configuration = import ./configuration.nix { inherit desktop hostname inputs pkgs system; };
|
||||
hardware-configuration = import ./hardware-configuration.nix;
|
||||
in
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue