From d1f5aa6dfab2d7a3ecd6fa67fcbc09c48f62690d Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Sun, 23 Jun 2024 13:53:01 +0200 Subject: [PATCH] Add remote rebuild (server) --- home/scripts/remote-rebuild/default.nix | 2 +- hosts/server/variables.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home/scripts/remote-rebuild/default.nix b/home/scripts/remote-rebuild/default.nix index e32c819..2f06140 100644 --- a/home/scripts/remote-rebuild/default.nix +++ b/home/scripts/remote-rebuild/default.nix @@ -3,7 +3,7 @@ let remote-rebuild = pkgs.writeShellScriptBin "remote-rebuild" '' - ssh jack -C "cd /home/hadi/.config/nixos && git pull && nixy-rebuild" + ssh jack -S -C "cd /home/hadi/.config/nixos && git pull && sudo -S nixos-rebuild switch --flake ~/.config/nixos#jack" ''; in { home.packages = with pkgs; [ remote-rebuild ]; } diff --git a/hosts/server/variables.nix b/hosts/server/variables.nix index 7eb717b..bad251a 100644 --- a/hosts/server/variables.nix +++ b/hosts/server/variables.nix @@ -29,6 +29,6 @@ sshPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPG9SE80ZyBcXZK/f5ypSKudaM5Jo3XtQikCnGo0jI5E hadi@nixy"; - theme = import ../themes/jack.nix; # select your theme here + theme = import ../themes/jack.nix; }; }