mirror of
https://github.com/divnix/digga.git
synced 2024-11-27 17:36:06 +03:00
flake#nixosModules: add binary cache as module
This commit is contained in:
parent
1dddafdfcf
commit
1373380a91
@ -50,9 +50,13 @@
|
||||
overlayPaths = map fullPath (attrNames (readDir overlayDir));
|
||||
in pathsToImportedAttrs overlayPaths;
|
||||
|
||||
packages.x86_64-linux = self.overlay pkgs pkgs;
|
||||
packages."${system}" = self.overlay pkgs pkgs;
|
||||
|
||||
nixosModules = let
|
||||
# binary cache
|
||||
cachix = import ./cachix.nix;
|
||||
cachixAttrs = { inherit cachix; };
|
||||
|
||||
# modules
|
||||
moduleList = import ./modules/list.nix;
|
||||
modulesAttrs = pathsToImportedAttrs moduleList;
|
||||
@ -61,6 +65,6 @@
|
||||
profilesList = import ./profiles/list.nix;
|
||||
profilesAttrs = { profiles = pathsToImportedAttrs profilesList; };
|
||||
|
||||
in modulesAttrs // profilesAttrs;
|
||||
in cachixAttrs // modulesAttrs // profilesAttrs;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user