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

10 lines
228 B
Nix

{ pkgs, config, ... }:
let
remote-rebuild = pkgs.writeShellScriptBin "remote-rebuild" ''
ssh jack -C "cd /home/hadi/.config/nixos && git pull && nixy-rebuild"
'';
in { home.packages = with pkgs; [ remote-rebuild ]; }