feat: add repl package

This commit is contained in:
matt1432 2023-12-02 14:33:22 -05:00
parent aab8ce92c3
commit d0ebaf9134
3 changed files with 3 additions and 2 deletions

View file

@ -73,6 +73,7 @@
home.packages =
[
config.customPkgs.repl
nix-melt.packages.x86_64-linux.default
nurl.packages.x86_64-linux.default
]

View file

@ -16,7 +16,7 @@ in
;;
*)
if [ -z "$1" ]; then
nix repl ${repl}
nix repl --arg flakePath $(${coreutils}/bin/readlink -f "/etc/nixos") ${repl}
else
nix repl --arg flakePath $(${coreutils}/bin/readlink -f $1 | ${gnused}/bin/sed 's|/flake.nix||') ${repl}
fi

View file

@ -1,5 +1,5 @@
{
flakePath ? ../../../.,
flakePath ? null,
hostnamePath ? "/etc/hostname",
registryPath ? /etc/nix/registry.json,
}: let