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

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