about summary refs log tree commit diff
path: root/users/glittershark/system/home/machines
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/system/home/machines')
-rw-r--r--users/glittershark/system/home/machines/chupacabra.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/users/glittershark/system/home/machines/chupacabra.nix b/users/glittershark/system/home/machines/chupacabra.nix
index b6940dc831b4..a3d841839b0d 100644
--- a/users/glittershark/system/home/machines/chupacabra.nix
+++ b/users/glittershark/system/home/machines/chupacabra.nix
@@ -49,5 +49,15 @@ in {
   home.packages = with pkgs; [
     steam
     xorg.libxcb
+    (writeShellScriptBin "rebuild-mugwump" ''
+      set -eo pipefail
+      cd ~/code/depot
+      nix build -f . users.glittershark.system.system.mugwumpSystem -o mugwump
+      nix copy -f . users.glittershark.system.system.mugwumpSystem \
+        --to ssh://mugwump
+      system=$(readlink -ef mugwump)
+      ssh mugwump sudo nix-env -p /nix/var/nix/profiles/system --set $system
+      ssh mugwump sudo $system/bin/switch-to-configuration switch
+    '')
   ];
 }