diff options
-rw-r--r-- | users/glittershark/system/home/machines/chupacabra.nix | 10 | ||||
-rw-r--r-- | users/glittershark/system/home/modules/common.nix | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/users/glittershark/system/home/machines/chupacabra.nix b/users/glittershark/system/home/machines/chupacabra.nix index e9f27daa4408..04f34ccbc4ae 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 0b295a450b61..d420595adb1d 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 = { |