flake#nixosModules: add binary cache as module
This commit is contained in:
parent
1dddafdfcf
commit
1373380a91
1 changed files with 6 additions and 2 deletions
|
@ -50,9 +50,13 @@
|
||||||
overlayPaths = map fullPath (attrNames (readDir overlayDir));
|
overlayPaths = map fullPath (attrNames (readDir overlayDir));
|
||||||
in pathsToImportedAttrs overlayPaths;
|
in pathsToImportedAttrs overlayPaths;
|
||||||
|
|
||||||
packages.x86_64-linux = self.overlay pkgs pkgs;
|
packages."${system}" = self.overlay pkgs pkgs;
|
||||||
|
|
||||||
nixosModules = let
|
nixosModules = let
|
||||||
|
# binary cache
|
||||||
|
cachix = import ./cachix.nix;
|
||||||
|
cachixAttrs = { inherit cachix; };
|
||||||
|
|
||||||
# modules
|
# modules
|
||||||
moduleList = import ./modules/list.nix;
|
moduleList = import ./modules/list.nix;
|
||||||
modulesAttrs = pathsToImportedAttrs moduleList;
|
modulesAttrs = pathsToImportedAttrs moduleList;
|
||||||
|
@ -61,6 +65,6 @@
|
||||||
profilesList = import ./profiles/list.nix;
|
profilesList = import ./profiles/list.nix;
|
||||||
profilesAttrs = { profiles = pathsToImportedAttrs profilesList; };
|
profilesAttrs = { profiles = pathsToImportedAttrs profilesList; };
|
||||||
|
|
||||||
in modulesAttrs // profilesAttrs;
|
in cachixAttrs // modulesAttrs // profilesAttrs;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue