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