diff --git a/home/scripts/default.nix b/home/scripts/default.nix index eeea147..3fce8f1 100644 --- a/home/scripts/default.nix +++ b/home/scripts/default.nix @@ -85,4 +85,19 @@ in chmod -R 777 "$file" end ''; + + deploytest = writeFishBin "deploytest" '' + nixos-rebuild test \ + --flake ~/.nixconf#"$argv[1]" \ + --target-host "$argv[1]" \ + --use-remote-sudo &| ${pkgs.nix-output-monitor}/bin/nom + ''; + + deployswitch = writeFishBin "deployswitch" '' + nixos-rebuild test \ + --flake ~/.nixconf#"$argv[1]" \ + --target-host "$argv[1]" \ + --use-remote-sudo &| ${pkgs.nix-output-monitor}/bin/nom + ''; + } diff --git a/hosts/brontes/home.nix b/hosts/brontes/home.nix index d1cd968..6076fa1 100644 --- a/hosts/brontes/home.nix +++ b/hosts/brontes/home.nix @@ -83,6 +83,8 @@ scripts.genswitch scripts.gentest scripts.editsym + scripts.deployswitch + scripts.deploytest ]; }; };