feat(gs/system): Write mugwump symlink to /tmp
To avoid it clogging up git status in the depot Change-Id: I102126dedb427d632679ee091aced6971495b8cc Reviewed-on: https://cl.tvl.fyi/c/depot/+/2206 Reviewed-by: glittershark <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
parent
d4fb573cf7
commit
a8a9e88d68
1 changed files with 2 additions and 2 deletions
|
@ -51,10 +51,10 @@ in {
|
|||
(writeShellScriptBin "rebuild-mugwump" ''
|
||||
set -eo pipefail
|
||||
cd ~/code/depot
|
||||
nix build -f . users.glittershark.system.system.mugwumpSystem -o mugwump
|
||||
nix build -f . users.glittershark.system.system.mugwumpSystem -o /tmp/mugwump
|
||||
nix copy -f . users.glittershark.system.system.mugwumpSystem \
|
||||
--to ssh://mugwump
|
||||
system=$(readlink -ef mugwump)
|
||||
system=$(readlink -ef /tmp/mugwump)
|
||||
ssh mugwump sudo nix-env -p /nix/var/nix/profiles/system --set $system
|
||||
ssh mugwump sudo $system/bin/switch-to-configuration switch
|
||||
'')
|
||||
|
|
Loading…
Reference in a new issue