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 {
name = "switch";
runtimeInputs = with pkgs; [
coreutils
nix-output-monitor
nvd
];
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"
"--flake ${config.environment.variables.FLAKE}"
"--builders ssh-ng://matt@100.64.0.7"
''"$@"''
"|&"
"nom"
]}
]} &&
nvd diff "$oldProfile" "$(realpath /nix/var/nix/profiles/per-user/nix-on-droid/profile)"
'';
})
];