diff options
author | lassulus <lassulus@lassul.us> | 2018-11-27 01:00:59 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-11-27 01:00:59 +0100 |
commit | a1c261d61b243549bb2525da57bf3fada805f7f5 (patch) | |
tree | b4313448273774562120419496d16fe2c9a214a5 /lass/2configs | |
parent | 304059b1da4ac256d1487e83a7280d0db6615c2d (diff) |
l blue-host: dry-build blue first
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/blue-host.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lass/2configs/blue-host.nix b/lass/2configs/blue-host.nix index 6d46cb8c1..fba996743 100644 --- a/lass/2configs/blue-host.nix +++ b/lass/2configs/blue-host.nix @@ -99,14 +99,15 @@ in { environment.systemPackages = [ (pkgs.writeDashBin "start-blue" '' set -ef - if ping -c1 blue.r >/dev/null; then - echo 'blue is already running. bailing out' - exit 23 - fi if ! $(mount | ${pkgs.gnugrep}/bin/grep -qi '^encfs on /var/lib/containers/blue'); then ${pkgs.encfs}/bin/encfs --public /var/lib/containers/.blue /var/lib/containers/blue fi nixos-container start blue + nixos-container run blue -- nixos-rebuild -I /var/src dry-build + if ping -c1 blue.r >/dev/null; then + echo 'blue is already running. bailing out' + exit 23 + fi nixos-container run blue -- nixos-rebuild -I /var/src switch '') ]; |