From 55198246ae7b2dbeb165b88b65af0bcdeadf2ac7 Mon Sep 17 00:00:00 2001 From: Isabel <isabel@isabelroses.com> Date: Tue, 4 Feb 2025 21:12:33 +0000 Subject: [PATCH] chore: utilise class for nixosModules This should help prevent errors from utilising the wrong class for the different system types. e.g. darwin trying to use nixos modules --- modules/nixosModules.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/nixosModules.nix b/modules/nixosModules.nix index 89cb301..892d32d 100644 --- a/modules/nixosModules.nix +++ b/modules/nixosModules.nix @@ -15,7 +15,11 @@ in nixosModules = mkOption { type = types.lazyAttrsOf types.deferredModule; default = { }; - apply = mapAttrs (k: v: { _file = "${toString moduleLocation}#nixosModules.${k}"; imports = [ v ]; }); + apply = mapAttrs (k: v: { + _class = "nixos"; + _file = "${toString moduleLocation}#nixosModules.${k}"; + imports = [ v ]; + }); description = '' NixOS modules.