home manager rebuilds using nh pacakge for nice outputs

This commit is contained in:
John Lancaster
2026-04-05 11:13:17 -05:00
parent bf9c3c2597
commit e59aa7a5f1
+2 -3
View File
@@ -43,7 +43,7 @@
nhms = (pkgs.writeShellScriptBin "nhms" '' nhms = (pkgs.writeShellScriptBin "nhms" ''
HOSTNAME=${hostnameCmd} HOSTNAME=${hostnameCmd}
${echoCmd} "Switching to the $HOSTNAME home-manager profile" ${echoCmd} "Switching to the $HOSTNAME home-manager profile"
${lib.getExe pkgs.home-manager} switch --impure --flake ${flakeDir}#$HOSTNAME ${lib.getExe pkgs.nh} home switch ${flakeDir} -c $HOSTNAME "$@"
''); '');
in in
{ {
@@ -74,8 +74,7 @@
'') '')
nhms nhms
(writeShellScriptBin "nhmu" '' (writeShellScriptBin "nhmu" ''
${nixBin} flake update --flake ${flakeDir} ${lib.getExe nhms} --update
${lib.getExe nhms}
'') '')
(writeShellScriptBin "test-build" '' (writeShellScriptBin "test-build" ''