From d9771827042800be330e5726f05af92c53394054 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Mon, 5 Dec 2022 23:43:57 +0100 Subject: [PATCH] home-manager: use `hostname` from Nixpkgs Before the home-manager tool got hostname from the system, which was not declarative or reproducible. (cherry picked from commit 2af0d07678fc15612345e0dd55337550dcf6465f) --- home-manager/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home-manager/default.nix b/home-manager/default.nix index ada4e07ab..3589acb82 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -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}' \