eval-clan-modules: don't re-import nixpkgs
This commit is contained in:
@@ -5,7 +5,10 @@
|
||||
...
|
||||
}:
|
||||
let
|
||||
eval = import ./eval-clan-modules { inherit clan-core nixpkgs lib; };
|
||||
eval = import ./eval-clan-modules {
|
||||
inherit clan-core lib;
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
};
|
||||
in
|
||||
{
|
||||
inherit (eval) evalClanModules evalClanModulesWithRoles;
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
{
|
||||
nixpkgs,
|
||||
clan-core,
|
||||
lib,
|
||||
pkgs,
|
||||
}:
|
||||
let
|
||||
inherit (import nixpkgs { system = "x86_64-linux"; }) pkgs;
|
||||
|
||||
inherit (clan-core) clanModules;
|
||||
|
||||
baseModule = {
|
||||
imports = (import (pkgs.path + "/nixos/modules/module-list.nix")) ++ [
|
||||
{
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
nixpkgs.pkgs = pkgs;
|
||||
clan.core.name = "dummy";
|
||||
system.stateVersion = lib.version;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user