sane-scripts: port sane-reboot to nix-shell

This commit is contained in:
Colin 2023-06-07 06:58:11 +00:00
parent 04f7287781
commit 9942025a2f
2 changed files with 7 additions and 1 deletions

View File

@ -224,6 +224,11 @@ let
src = ./src;
pkgs = [ "rsync" ];
};
reboot = static-nix-shell.mkBash {
pname = "sane-reboot";
src = ./src;
pkgs = [ "systemd" ];
};
reclaim-boot-space = static-nix-shell.mkPython3Bin {
pname = "sane-reclaim-boot-space";
src = ./src;

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p systemd
target="$1"
host="$(hostname)"