This commit is contained in:
Sebastian Moser
2023-11-20 13:49:31 +01:00
parent 472e5082e7
commit eb3980f6e4
8 changed files with 201 additions and 11 deletions

View File

@@ -27,8 +27,6 @@ fi
if [ "$1" == "ignore" ]
echo hello
exit
then
if [ -t 0 ]
then

View File

@@ -6,20 +6,32 @@
build_from_github(){
export out_path=$(nix build --refresh "github:c2vi/nixos#nixosConfigurations.$host.config.system.build.toplevel" --impure --no-link --print-out-paths $args_to_pass)
build_exit_code=$?
if [[ "$out_path" == "" ]]
then
build_exit_code=1
else
build_exit_code=0
fi
echo out_path: $out_path
echo build_exit_code: $build_exit_code
echo build_exit_code: $build_exit_code
return $build_exit_code
}
build_from_local(){
export out_path=$(sudo nix build "$HOME/work/config#nixosConfigurations.$host.config.system.build.toplevel" --impure --no-link --print-out-paths $args_to_pass)
build_exit_code=$?
if [[ "$out_path" == "" ]]
then
build_exit_code=1
else
build_exit_code=0
fi
echo out_path: $out_path
echo build_exit_code: $build_exit_code
echo build_exit_code: $build_exit_code
return $build_exit_code
}