Use attrset for nixfiles lib init

This commit is contained in:
NullBite 2024-04-22 22:15:33 -04:00
parent 9928eaa9cc
commit 737eaf14b0
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
5 changed files with 7 additions and 7 deletions

View File

@ -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;
}; };

View File

@ -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; };
} }

View File

@ -1,4 +1,4 @@
pkgs: { pkgs, ... }:
let let
inherit (pkgs) lib; inherit (pkgs) lib;
in in

View File

@ -1,4 +1,4 @@
pkgs: { pkgs, ... }:
let let
inherit (pkgs) lib; inherit (pkgs) lib;
inherit (lib.types) mkOptionType; inherit (lib.types) mkOptionType;

View File

@ -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;
}; };