mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
home-manager: use hostname from Nixpkgs
Before the home-manager tool got hostname from the system, which was not declarative or reproducible.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{ runCommand, lib, bash, callPackage, coreutils, findutils, gettext, gnused
|
||||
, less, ncurses
|
||||
, less, ncurses, unixtools
|
||||
# used for pkgs.path for nixos-option
|
||||
, pkgs
|
||||
|
||||
@@ -39,6 +39,7 @@ in runCommand "home-manager" {
|
||||
less
|
||||
ncurses
|
||||
nixos-option
|
||||
unixtools.hostname
|
||||
]
|
||||
}" \
|
||||
--subst-var-by HOME_MANAGER_LIB '${../lib/bash/home-manager.sh}' \
|
||||
|
||||
Reference in New Issue
Block a user