diff --git a/modules/examples/lnl.nix b/modules/examples/lnl.nix index e0ba063..be1db06 100644 --- a/modules/examples/lnl.nix +++ b/modules/examples/lnl.nix @@ -244,7 +244,7 @@ } :a() { - nix repl ''${@:-} + nix repl ''${@:-} } xi() { @@ -383,6 +383,7 @@ [ # Use local nixpkgs checkout instead of channels. "darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix" "darwin=$HOME/.nix-defexpr/darwin" + "darwinpkgs=${pkgs.lnl-darwinpkgs}" "nixpkgs=$HOME/.nix-defexpr/nixpkgs" "$HOME/.nix-defexpr/channels" "$HOME/.nix-defexpr" @@ -403,6 +404,16 @@ git "$@" rev-parse origin/master ''; + lnl-darwinpkgs = super.writeTextFile { + name = "darwinpkgs"; + destination = "/default.nix"; + text = '' + { ... }@args: + + (import args).pkgs + ''; + }; + lnl-zsh-completions = super.runCommandNoCC "lnl-zsh-completions-0.0.0" { preferLocalBuild = true; } ''