mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-09-11 12:15:29 +03:00
eliminates unnecessary recursion
This commit is contained in:
parent
a5b82accc8
commit
5336fdf53d
@ -10,7 +10,7 @@
|
||||
outputs = { self, nixpkgs, nixlib }:
|
||||
|
||||
# Library modules (depend on nixlib)
|
||||
rec {
|
||||
{
|
||||
# export all generator formats in ./formats
|
||||
nixosModules = nixlib.lib.mapAttrs' (file: _: {
|
||||
name = nixlib.lib.removeSuffix ".nix" file;
|
||||
@ -35,7 +35,7 @@
|
||||
imports = ( value.imports or [] ++ [ ./format-module.nix ] );
|
||||
} )
|
||||
) customFormats;
|
||||
formatModule = builtins.getAttr format (nixosModules // extraFormats);
|
||||
formatModule = builtins.getAttr format (self.nixosModules // extraFormats);
|
||||
image = nixpkgs.lib.nixosSystem {
|
||||
inherit pkgs specialArgs;
|
||||
system = if system != null then system else pkgs.system;
|
||||
|
Loading…
Reference in New Issue
Block a user