home manager rebuilds using nh pacakge for nice outputs
This commit is contained in:
@@ -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" ''
|
||||||
|
|||||||
Reference in New Issue
Block a user