feat(droid): make switch command more like nh
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-08-20 08:43:38 -04:00
parent 70d794c753
commit c70e585569

View file

@ -22,17 +22,23 @@
(pkgs.writeShellApplication { (pkgs.writeShellApplication {
name = "switch"; name = "switch";
runtimeInputs = with pkgs; [ runtimeInputs = with pkgs; [
coreutils
nix-output-monitor nix-output-monitor
nvd
]; ];
text = '' text = ''
exec nix-on-droid ${lib.concatStringsSep " " [ oldProfile=$(realpath /nix/var/nix/profiles/per-user/nix-on-droid/profile)
nix-on-droid ${lib.concatStringsSep " " [
"switch" "switch"
"--flake ${config.environment.variables.FLAKE}" "--flake ${config.environment.variables.FLAKE}"
"--builders ssh-ng://matt@100.64.0.7" "--builders ssh-ng://matt@100.64.0.7"
''"$@"'' ''"$@"''
"|&" "|&"
"nom" "nom"
]} ]} &&
nvd diff "$oldProfile" "$(realpath /nix/var/nix/profiles/per-user/nix-on-droid/profile)"
''; '';
}) })
]; ];