nixos/home/scripts/remote-rebuild/default.nix
2024-06-23 13:53:01 +02:00

10 lines
276 B
Nix

{ pkgs, config, ... }:
let
remote-rebuild = pkgs.writeShellScriptBin "remote-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 ]; }