sane-scripts: port sane-reboot to nix-shell
This commit is contained in:
@@ -224,6 +224,11 @@ let
|
|||||||
src = ./src;
|
src = ./src;
|
||||||
pkgs = [ "rsync" ];
|
pkgs = [ "rsync" ];
|
||||||
};
|
};
|
||||||
|
reboot = static-nix-shell.mkBash {
|
||||||
|
pname = "sane-reboot";
|
||||||
|
src = ./src;
|
||||||
|
pkgs = [ "systemd" ];
|
||||||
|
};
|
||||||
reclaim-boot-space = static-nix-shell.mkPython3Bin {
|
reclaim-boot-space = static-nix-shell.mkPython3Bin {
|
||||||
pname = "sane-reclaim-boot-space";
|
pname = "sane-reclaim-boot-space";
|
||||||
src = ./src;
|
src = ./src;
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i bash -p systemd
|
||||||
|
|
||||||
target="$1"
|
target="$1"
|
||||||
host="$(hostname)"
|
host="$(hostname)"
|
||||||
|
Reference in New Issue
Block a user