data model: type nixos module

This commit is contained in:
Kiara Grouwstra 2025-07-31 18:52:16 +02:00
parent 9d903f3ef7
commit 28fb4fe3ad
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -1,4 +1,5 @@
let
sources = import ../npins;
inherit (import ../default.nix { }) pkgs inputs;
inherit (pkgs) lib;
inherit (lib) mkOption types;
@ -69,7 +70,11 @@ in
};
};
config = {
resource-type = types.raw; # TODO: splice out the user type from NixOS
resource-type = types.deferredModuleWith {
staticModules = import "${sources.nixpkgs}/nixos/modules/module-list.nix" ++ [
{ _class = "nixos"; }
];
};
apply =
requests:
let