From 13b049b4316aeff628dee98abe7d0f0063f6a9f4 Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 21 Nov 2023 13:54:16 +0900 Subject: [PATCH] Add remote builds shortcut --- home-manager/common/software/cli/bash.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home-manager/common/software/cli/bash.nix b/home-manager/common/software/cli/bash.nix index 34fb3f72..bd8817fc 100644 --- a/home-manager/common/software/cli/bash.nix +++ b/home-manager/common/software/cli/bash.nix @@ -133,7 +133,9 @@ # Rebuild everything rebuild-home = "git -C /etc/nixos/git pull && home-manager switch -b backup --flake /etc/nixos/git"; + rebuild-home-remote = "git -C /etc/nixos/git pull && home-manager switch -b backup --flake /etc/nixos/git -j0"; rebuild-host = "git -C /etc/nixos/git pull && sudo nixos-rebuild switch --flake /etc/nixos/git"; + rebuild-host-remote = "git -C /etc/nixos/git pull && sudo nixos-rebuild switch --flake /etc/nixos/git -j0"; rebuild-all = "rebuild-home && rebuild-host"; }; };