flake#nixosModules: add binary cache as module

This commit is contained in:
Timothy DeHerrera 2020-07-26 16:03:51 -06:00
parent 1dddafdfcf
commit 1373380a91
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122

View File

@ -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;
}; };
} }