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" ''
HOSTNAME=${hostnameCmd}
${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
{
@@ -74,8 +74,7 @@
'')
nhms
(writeShellScriptBin "nhmu" ''
${nixBin} flake update --flake ${flakeDir}
${lib.getExe nhms}
${lib.getExe nhms} --update
'')
(writeShellScriptBin "test-build" ''