feat: add repl package
This commit is contained in:
parent
aab8ce92c3
commit
d0ebaf9134
3 changed files with 3 additions and 2 deletions
|
@ -73,6 +73,7 @@
|
|||
|
||||
home.packages =
|
||||
[
|
||||
config.customPkgs.repl
|
||||
nix-melt.packages.x86_64-linux.default
|
||||
nurl.packages.x86_64-linux.default
|
||||
]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
flakePath ? ../../../.,
|
||||
flakePath ? null,
|
||||
hostnamePath ? "/etc/hostname",
|
||||
registryPath ? /etc/nix/registry.json,
|
||||
}: let
|
||||
|
|
Loading…
Reference in a new issue