WIP: data model: type nixos module #8

Closed
kiara wants to merge 1 commit from data-model-type-nixos-module into deployment-data-model-with-tests

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