Skip to content

Commit

Permalink
repl: Get pkgs instance before module systems
Browse files Browse the repository at this point in the history
We build our nixpkgs instance ahead of time and pass it into nixos,
home-manager, system-manager and whatever else we can pass nixpkgs into.
So for the repl.pkgs we just take that pkgs instance and use it.
  • Loading branch information
Lillecarl committed Dec 9, 2024
1 parent 4ec419e commit 9e1212a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repl/flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
user = builtins.getEnv "USER";
in
rec {
pkgs = (self.nixosConfigurations.${host} or self.homeConfigurations."${user}@${host}").pkgs;
pkgs = withSystem builtins.currentSystem ({ pkgs, ... }: pkgs);
fmt = inputs.treefmt-nix.lib.evalModule pkgs ../fmt/default.nix;
lib = pkgs.lib;
inherit self inputs;
Expand Down

0 comments on commit 9e1212a

Please sign in to comment.