Created options; Moved tailscale to network folder; Disabled networkmanager wait online; Added repl command; updated firefox interface; other smaller stuff

This commit is contained in:
Jurn Wubben 2025-03-09 15:23:13 +01:00
parent 20891b3e14
commit 5de86bcfe3
37 changed files with 542 additions and 255 deletions

View file

@ -0,0 +1,26 @@
# copied from https://github.com/fufexan/dotfiles/blob/main/pkgs/repl/default.nix
{pkgs, ...}: let
repl = ./lib.nix;
example = command: desc: ''\n\u001b[33m ${command}\u001b[0m - ${desc}'';
in {
home.packages = [
(pkgs.writeShellScriptBin
"repl"
''
case "$1" in
"-h"|"--help"|"help")
printf "%b\n\e[4mUsage\e[0m: \
${example "repl" "Loads system flake if available."} \
${example "repl /path/to/flake.nix" "Loads specified flake."}\n"
;;
*)
if [ -z "$1" ]; then
nix repl ${repl}
else
nix repl --arg flakePath $(${pkgs.coreutils}/bin/readlink -f $1 | ${pkgs.gnused}/bin/sed 's|/flake.nix||') ${repl}
fi
;;
esac
'')
];
}