more commandline changes

This commit is contained in:
Noah Masur 2022-07-05 19:40:54 -04:00
parent c646f126e2
commit 758321adc3
2 changed files with 4 additions and 7 deletions

View File

@ -13,9 +13,8 @@
if test "$argv[1]" = "offline" if test "$argv[1]" = "offline"
set option "--option substitute false" set option "--option substitute false"
end end
commandline --replace "git -C ${config.dotfilesPath} add --all" git -C ${config.dotfilesPath} add --all
commandline --append " commandline -r "darwin-rebuild switch $option --flake ${config.dotfilesPath}#macbook"
darwin-rebuild switch $option --flake ${config.dotfilesPath}#macbook"
commandline --function execute commandline --function execute
''; '';
}; };

View File

@ -27,11 +27,9 @@
if test "$argv[1]" = "offline" if test "$argv[1]" = "offline"
set option "--option substitute false" set option "--option substitute false"
end end
pushd ${config.dotfilesPath} git -C ${config.dotfilesPath} add --all
git add --all
popd
commandline -r "doas nixos-rebuild switch $option --flake ${config.dotfilesPath}" commandline -r "doas nixos-rebuild switch $option --flake ${config.dotfilesPath}"
commandline -f execute commandline --function execute
''; '';
}; };
}; };