mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +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.
|
# If you have to add those functions, you'll have to add them in configUtils.
|
||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (pkgs) lib;
|
||||||
|
in
|
||||||
pkgs.lib.makeExtensible
|
pkgs.lib.makeExtensible
|
||||||
(self:
|
(self:
|
||||||
let
|
let
|
||||||
inherit (pkgs) lib;
|
|
||||||
callLib = file: import file { inherit pkgs lib self; };
|
callLib = file: import file { inherit pkgs lib self; };
|
||||||
in {
|
in {
|
||||||
builders = callLib ./builders.nix;
|
builders = callLib ./builders.nix;
|
||||||
@ -19,4 +21,8 @@ pkgs.lib.makeExtensible
|
|||||||
inherit (self.builders) makeXDGMimeAssociationList makeXDGPortalConfiguration;
|
inherit (self.builders) makeXDGMimeAssociationList makeXDGPortalConfiguration;
|
||||||
inherit (self.trivial) countAttrs;
|
inherit (self.trivial) countAttrs;
|
||||||
inherit (self.data) importYAML renderTeraTemplate;
|
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