Skip to content

Commit

Permalink
flake: Fix usage of importNixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzleutgeb committed Dec 21, 2023
1 parent 1860503 commit b7a92d4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@
allPackages;

importNixpkgs = system: overlays:
import nixpkgs {
inherit system;
overlays = overlays ++ [rust-overlay.overlays.default];
};
import nixpkgs {inherit system overlays;};

rawNixosConfigs = import ./configs/all-configurations.nix;

Expand All @@ -104,7 +101,7 @@
rawNixosConfigs;

eachDefaultSystemOutputs = flake-utils.lib.eachDefaultSystem (system: let
pkgs = importNixpkgs system [];
pkgs = importNixpkgs system [rust-overlay.overlays.default];
treefmtEval = loadTreefmt pkgs;
toplevel = name: config: nameValuePair "${name}-toplevel" config.config.system.build.toplevel;
in {
Expand Down

0 comments on commit b7a92d4

Please sign in to comment.