From c3f35caefa65b117f2590108f2fe2ecc2750721c Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sun, 28 Mar 2021 17:16:45 -0400 Subject: refactor(gs/home): Move rebuild-mugwump script to all machines Chupacabra doesn't even exist anymore, plus I want this installed on all home systems Change-Id: Id0e5c89797b1ad52b2a24d60ad3ab5e125f60266 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2696 Reviewed-by: glittershark Tested-by: BuildkiteCI --- users/glittershark/system/home/machines/chupacabra.nix | 10 ---------- users/glittershark/system/home/modules/common.nix | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'users/glittershark/system') diff --git a/users/glittershark/system/home/machines/chupacabra.nix b/users/glittershark/system/home/machines/chupacabra.nix index e9f27daa44..04f34ccbc4 100644 --- a/users/glittershark/system/home/machines/chupacabra.nix +++ b/users/glittershark/system/home/machines/chupacabra.nix @@ -48,16 +48,6 @@ 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 /tmp/mugwump - nix copy -f . users.glittershark.system.system.mugwumpSystem \ - --to ssh://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 - '') ]; xsession.windowManager.i3.config.keybindings.F7 = "exec lock"; diff --git a/users/glittershark/system/home/modules/common.nix b/users/glittershark/system/home/modules/common.nix index 0b295a450b..d420595adb 100644 --- a/users/glittershark/system/home/modules/common.nix +++ b/users/glittershark/system/home/modules/common.nix @@ -44,6 +44,16 @@ nix-prefetch-github nix-review cachix + (writeShellScriptBin "rebuild-mugwump" '' + set -eo pipefail + cd ~/code/depot + 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 /tmp/mugwump) + ssh mugwump sudo nix-env -p /nix/var/nix/profiles/system --set $system + ssh mugwump sudo $system/bin/switch-to-configuration switch + '') ]; programs.ssh = { -- cgit 1.4.1