diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-10-23T15·11-0400 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-10-23T15·23+0000 |
commit | f13e88ab071716537e1da14379c4853441c57fa2 (patch) | |
tree | 1781ee04f03b87851df2fe9c8c157e0bbb099137 /users/glittershark/system/home/machines | |
parent | af86d08ba82b97a4c73b1435dc6aa174e8846f56 (diff) |
feat(gs/home): Add script to rebuild mugwump r/1856
Eventually this should be generalized, but for now this is good enough + nice to have Change-Id: Icca815b651cfb6f8f0cd2d6a1f64e56c63d2fef5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2057 Reviewed-by: glittershark <grfn@gws.fyi> Tested-by: BuildkiteCI
Diffstat (limited to 'users/glittershark/system/home/machines')
-rw-r--r-- | users/glittershark/system/home/machines/chupacabra.nix | 10 |
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 + '') ]; } |