This commit is contained in:
Timothy DeHerrera 2021-02-15 23:30:18 -07:00
parent e7b46dfd92
commit 0e27b367d7
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122

View File

@ -33,8 +33,13 @@ case "$1" in
nixos-generate-config --dir "$DEVSHELL_ROOT/up/$HOSTNAME" nixos-generate-config --dir "$DEVSHELL_ROOT/up/$HOSTNAME"
printf "{ imports = [ ../up/$HOSTNAME/configuration.nix ]; }" \ printf "%s\n" \
> "$DEVSHELL_ROOT/hosts/up-$HOSTNAME.nix" "{ suites, ... }:" \
"{" \
" imports = [" \
" ../up/$HOSTNAME/configuration.nix" \
" ] ++ suites.core;" \
"}" > "$DEVSHELL_ROOT/hosts/up-$HOSTNAME.nix"
git add -f \ git add -f \
"$DEVSHELL_ROOT/up/$HOSTNAME" \ "$DEVSHELL_ROOT/up/$HOSTNAME" \