We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b0f279 commit 57b6932Copy full SHA for 57b6932
home/mlenz/common/packages/commands.nix
@@ -239,7 +239,15 @@
239
exec rlwrap ssh eu.nixbuild.net shell
240
'';
241
nix-repl = ''
242
- exec nix repl --expr "rec { pkgs = import <pkgs> {}; lib = pkgs.lib; }" "$@"
+ exec nix repl --expr 'rec {
243
+ self = builtins.getFlake ("git+file://" + toString ./.);
244
+ cfg = builtins.getFlake "cfg";
245
+ pkgs = import <pkgs> {
246
+ overlays = [ cfg.overlays.default ];
247
+ config = cfg.nixpkgsConfig;
248
+ };
249
+ lib = pkgs.lib;
250
+ }' "$@"
251
252
noeol = ''
253
exec tr -d '\n'
lib/default.nix
@@ -33,7 +33,7 @@ rec {
33
};
34
})
35
{
36
- self = inputs.self;
+ cfg = inputs.self;
37
nixpkgs = inputs.nixpkgs;
38
stable = systemInput {
39
inherit os;
0 commit comments