refactor: make nix modules take package instead of entire self

This commit is contained in:
pengo 2026-06-08 18:02:07 -06:00
parent df492dab6b
commit 70f3d20929
4 changed files with 20 additions and 9 deletions

View file

@ -9,7 +9,7 @@ self: {
eval = lib.evalModules {
modules = [
(import module self)
(import module self.packages.${pkgs.stdenv.hostPlatform.system}.default)
{_module.check = false;}
];
specialArgs = {inherit pkgs;};

View file

@ -1,4 +1,4 @@
self: {
mangoPackage: {
lib,
config,
pkgs,
@ -23,7 +23,7 @@ in {
};
package = lib.mkOption {
type = lib.types.package;
default = self.packages.${pkgs.stdenv.hostPlatform.system}.mango;
default = mangoPackage;
description = "The mango package to use";
};
systemd = {

View file

@ -1,4 +1,4 @@
self: {
mangoPackage: {
config,
lib,
pkgs,
@ -16,7 +16,7 @@ in {
};
package = lib.mkOption {
type = lib.types.package;
default = self.packages.${pkgs.stdenv.hostPlatform.system}.mango;
default = mangoPackage;
description = "The mango package to use";
};
};