fix(lib): Stop mkEnableModule from referring to itself

This commit is contained in:
punkfairie 2024-11-16 22:29:13 -08:00
parent e997894958
commit b2a053e3f2
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696

View file

@ -1,4 +1,4 @@
{ lib, namespace, ... }: { lib, ... }:
with lib; with lib;
rec { rec {
## Create a module option with only an enable option. ## Create a module option with only an enable option.
@ -8,7 +8,7 @@ rec {
## ##
#@ String #@ String
mkEnableModule = name: { mkEnableModule = name: {
${namespace}.${name}.enable = mkEnableModule "${name}"; marleyos."${name}".enable = mkEnableOption "${name}";
}; };
## Create a NixOS module option. ## Create a NixOS module option.