mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
lib: conditionally add flake subset
This commit is contained in:
parent
6987a2215f
commit
dc80f95e2b
@ -6,10 +6,12 @@
|
||||
# If you have to add those functions, you'll have to add them in configUtils.
|
||||
{ pkgs }:
|
||||
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
in
|
||||
pkgs.lib.makeExtensible
|
||||
(self:
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
callLib = file: import file { inherit pkgs lib self; };
|
||||
in {
|
||||
builders = callLib ./builders.nix;
|
||||
@ -19,4 +21,8 @@ pkgs.lib.makeExtensible
|
||||
inherit (self.builders) makeXDGMimeAssociationList makeXDGPortalConfiguration;
|
||||
inherit (self.trivial) countAttrs;
|
||||
inherit (self.data) importYAML renderTeraTemplate;
|
||||
} // lib.optionalAttrs (builtins ? fetchTree) {
|
||||
flake = callLib ./flake.nix;
|
||||
|
||||
inherit (self.flake) importFlakeMetadata fetchTree fetchInput;
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user