nixos-config/remote.sh
2020-12-24 15:31:48 +01:00

6 lines
249 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
set -x
nix build --no-link --profile /nix/var/nix/profiles/per-user/charlotte/$1 .#nixosConfigurations.$1.config.system.build.toplevel
nixos-rebuild --flake .#$1 --target-host root@$1 --build-host localhost $2