Skip to content

Commit

Permalink
nixos: Import the flake default module by default
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Oct 22, 2022
1 parent d9d47d2 commit 985a7a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nixos/lib/eval-config-minimal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ let
inherit prefix modules;
specialArgs = {
modulesPath = builtins.toString ../modules;
prepareImport = x:
# TODO https://github.com/NixOS/nix/issues/7186
# x._type or null == "flake"
if x?sourceInfo && x?inputs && x?nixosModules.default
then x.nixosModules.default
else x;
} // specialArgs;
};

Expand Down

0 comments on commit 985a7a3

Please sign in to comment.