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

This commit is contained in:
Colin 2023-06-07 07:11:41 +00:00
parent c8d5411462
commit 6bbb5669a6
2 changed files with 7 additions and 1 deletions

View File

@ -251,6 +251,11 @@ let
src = ./src;
pkgs = [ "coreutils-full" "findutils" "sops" ];
};
shutdown = static-nix-shell.mkBash {
pname = "sane-shutdown";
src = ./src;
pkgs = [ "inetutils" "systemd" ];
};
};
in
symlinkJoin {

View File

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