Use attrset for nixfiles lib init
This commit is contained in:
parent
9928eaa9cc
commit
737eaf14b0
@ -24,7 +24,7 @@ in
|
||||
|
||||
lib = lib.mkOption {
|
||||
description = "nixfiles library";
|
||||
default = (import ../lib/nixfiles) pkgs;
|
||||
default = (import ../lib/nixfiles) { inherit pkgs; };
|
||||
readOnly = true;
|
||||
};
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
pkgs:
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
in
|
||||
{
|
||||
types = (import ./types.nix) pkgs;
|
||||
minecraft = (import ./minecraft.nix) pkgs;
|
||||
types = (import ./types.nix) { inherit pkgs; };
|
||||
minecraft = (import ./minecraft.nix) { inherit pkgs; };
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
pkgs:
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
in
|
||||
|
@ -1,4 +1,4 @@
|
||||
pkgs:
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
inherit (pkgs) lib;
|
||||
inherit (lib.types) mkOptionType;
|
||||
|
@ -30,7 +30,7 @@ in
|
||||
|
||||
lib = lib.mkOption {
|
||||
description = "nixfiles library";
|
||||
default = (import ../lib/nixfiles) pkgs;
|
||||
default = (import ../lib/nixfiles) { inherit pkgs; };
|
||||
readOnly = true;
|
||||
type = lib.types.attrs;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user