Refactor the whole configuration #1

Merged
caem merged 354 commits from refactor into master 2025-02-01 14:05:16 +01:00
2 changed files with 0 additions and 21 deletions
Showing only changes of commit 24ceb47775 - Show all commits

View file

@ -158,16 +158,7 @@ reboot_on_consent() {
fi 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 () { main () {
ensure_shell "$@"
args "$@" args "$@"
permissions 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'"
'';
}