1
Fork 0

shell no longer needed

This commit is contained in:
caem 2025-01-20 00:56:45 +01:00
parent 3fb105fa1c
commit 24ceb47775
Signed by: caem
GPG key ID: 69A830D03203405F
2 changed files with 0 additions and 21 deletions

View file

@ -158,16 +158,7 @@ reboot_on_consent() {
fi
}
ensure_shell() {
if [ -z "$IN_NIX_SHELL" ]; then
echo "Restarting script in nix-shell environment."
exec nix-shell shell.nix --run "bash $0 $*"
fi
}
main () {
ensure_shell "$@"
args "$@"
permissions

View file

@ -1,12 +0,0 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
age
];
shellHook = ''
alias nix="nix --experimental-features 'nix-command flakes'"
'';
}