summary refs log tree commit diff
path: root/nixos/modules/profiles/base.nix
diff options
context:
space:
mode:
authorRoger Qiu <roger.qiu@polycademy.com>2015-11-22 01:03:16 +1100
committerRoger Qiu <roger.qiu@polycademy.com>2015-11-22 01:03:16 +1100
commit1ddbc20daca8014c598a8255d1ab40b3be80766d (patch)
tree21b6f85a9fcb576c70074ad210e9d298a7527a95 /nixos/modules/profiles/base.nix
parent3387fb4b1f750083cfcc1d922182d46816d8be08 (diff)
downloadnixpkgs-1ddbc20daca8014c598a8255d1ab40b3be80766d.tar
nixpkgs-1ddbc20daca8014c598a8255d1ab40b3be80766d.tar.gz
nixpkgs-1ddbc20daca8014c598a8255d1ab40b3be80766d.tar.bz2
nixpkgs-1ddbc20daca8014c598a8255d1ab40b3be80766d.tar.lz
nixpkgs-1ddbc20daca8014c598a8255d1ab40b3be80766d.tar.xz
nixpkgs-1ddbc20daca8014c598a8255d1ab40b3be80766d.tar.zst
nixpkgs-1ddbc20daca8014c598a8255d1ab40b3be80766d.zip
Change the preset networking.hostId to use `mkDefault` so it can be easily changed by the user later
Diffstat (limited to 'nixos/modules/profiles/base.nix')
-rw-r--r--nixos/modules/profiles/base.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/profiles/base.nix b/nixos/modules/profiles/base.nix
index 9aa0034783f..b8057cadce2 100644
--- a/nixos/modules/profiles/base.nix
+++ b/nixos/modules/profiles/base.nix
@@ -1,7 +1,7 @@
 # This module defines the software packages included in the "minimal"
 # installation CD.  It might be useful elsewhere.
 
-{ config, pkgs, ... }:
+{ config, lib, pkgs, ... }:
 
 {
   # Include some utilities that are useful for installing or repairing
@@ -50,5 +50,5 @@
   boot.supportedFilesystems = [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "zfs" "ntfs" "cifs" ];
 
   # Configure host id for ZFS to work
-  networking.hostId = "8425e349";
+  networking.hostId = lib.mkDefault "8425e349";
 }