hosts: add convenient switch script
authorJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Sun, 5 Dec 2021 10:55:34 +0000 (11:55 +0100)
committerJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Sun, 5 Dec 2021 10:56:00 +0000 (11:56 +0100)
hosts/carotte/switch [new file with mode: 0755]
hosts/losurdo/switch [new file with mode: 0755]
hosts/mermet/switch [new file with mode: 0755]

diff --git a/hosts/carotte/switch b/hosts/carotte/switch
new file mode 100755 (executable)
index 0000000..4be5dd1
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh -eux
+cd "${0%/*}"/../..
+
+# Building Linux or Rust requires space
+sudo mount -o remount,size=15G /tmp
+
+nix -L run .#carotte.switch "$@"
diff --git a/hosts/losurdo/switch b/hosts/losurdo/switch
new file mode 100755 (executable)
index 0000000..138759d
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh -eux
+cd "${0%/*}"/../..
+nix -L run .#losurdo.switch "$@"
diff --git a/hosts/mermet/switch b/hosts/mermet/switch
new file mode 100755 (executable)
index 0000000..8bddce8
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh -eux
+cd "${0%/*}"/../..
+nix -L run .#mermet.switch "$@"