feat(droid): make switch command more like nh
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
70d794c753
commit
c70e585569
1 changed files with 8 additions and 2 deletions
|
@ -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)"
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue