#!/usr/bin/env bash args="" if [ $(hostname -f) != "szalotka.cebula.camp" ]; then echo "Running remotely" args="--build-host szalotka.cebula.camp" args="$args --target-host szalotka.cebula.camp" args="$args --use-remote-sudo" args="$args --use-substitutes" fi nixos-rebuild \ -I nixos-config=./configuration.nix \ -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/635e887b48521e912a516625eee7df6cf0eba9c1.tar.gz \ $args \ "$@"