mirror of
https://github.com/nix-community/flakelight.git
synced 2025-02-15 08:59:23 +01:00
Allow autoloading flakelightModules options
This commit is contained in:
parent
f4edb1589b
commit
0e76ac9b3c
@ -32,15 +32,17 @@ in
|
|||||||
app = autoImport' "app";
|
app = autoImport' "app";
|
||||||
apps = autoImport' "apps";
|
apps = autoImport' "apps";
|
||||||
checks = autoImport' "checks";
|
checks = autoImport' "checks";
|
||||||
|
template = autoImportArgs' "template";
|
||||||
|
templates = autoImportArgs' "templates";
|
||||||
|
formatters = autoImport' "formatters";
|
||||||
nixosModule = autoImport' "nixosModule";
|
nixosModule = autoImport' "nixosModule";
|
||||||
nixosModules = autoImportArgs' "nixosModules";
|
nixosModules = autoImportArgs' "nixosModules";
|
||||||
nixosConfigurations = autoImportArgs' [ "nixosConfigurations" "nixos" ];
|
nixosConfigurations = autoImportArgs' [ "nixosConfigurations" "nixos" ];
|
||||||
homeModule = autoImport' "homeModule";
|
homeModule = autoImport' "homeModule";
|
||||||
homeModules = autoImportArgs' "homeModules";
|
homeModules = autoImportArgs' "homeModules";
|
||||||
homeConfigurations = autoImportArgs' [ "homeConfigurations" "home" ];
|
homeConfigurations = autoImportArgs' [ "homeConfigurations" "home" ];
|
||||||
template = autoImportArgs' "template";
|
flakelightModule = autoImport' "flakelightModule";
|
||||||
templates = autoImportArgs' "templates";
|
flakelightModules = autoImportArgs' "flakelightModules";
|
||||||
formatters = autoImport' "formatters";
|
|
||||||
in
|
in
|
||||||
mkMerge [
|
mkMerge [
|
||||||
{ _module.args = { inherit autoloadArgs; }; }
|
{ _module.args = { inherit autoloadArgs; }; }
|
||||||
@ -65,14 +67,16 @@ in
|
|||||||
(mkIf (app != null) { inherit app; })
|
(mkIf (app != null) { inherit app; })
|
||||||
(mkIf (apps != null) { inherit apps; })
|
(mkIf (apps != null) { inherit apps; })
|
||||||
(mkIf (checks != null) { inherit checks; })
|
(mkIf (checks != null) { inherit checks; })
|
||||||
|
(mkIf (template != null) { inherit template; })
|
||||||
|
(mkIf (templates != null) { inherit templates; })
|
||||||
|
(mkIf (formatters != null) { inherit formatters; })
|
||||||
(mkIf (nixosModule != null) { inherit nixosModule; })
|
(mkIf (nixosModule != null) { inherit nixosModule; })
|
||||||
(mkIf (nixosModules != null) { inherit nixosModules; })
|
(mkIf (nixosModules != null) { inherit nixosModules; })
|
||||||
(mkIf (nixosConfigurations != null) { inherit nixosConfigurations; })
|
(mkIf (nixosConfigurations != null) { inherit nixosConfigurations; })
|
||||||
(mkIf (homeModule != null) { inherit homeModule; })
|
(mkIf (homeModule != null) { inherit homeModule; })
|
||||||
(mkIf (homeModules != null) { inherit homeModules; })
|
(mkIf (homeModules != null) { inherit homeModules; })
|
||||||
(mkIf (homeConfigurations != null) { inherit homeConfigurations; })
|
(mkIf (homeConfigurations != null) { inherit homeConfigurations; })
|
||||||
(mkIf (template != null) { inherit template; })
|
(mkIf (flakelightModule != null) { inherit flakelightModule; })
|
||||||
(mkIf (templates != null) { inherit templates; })
|
(mkIf (flakelightModules != null) { inherit flakelightModules; })
|
||||||
(mkIf (formatters != null) { inherit formatters; })
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user