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
Showing only changes of commit d91211f9a1 - Show all commits

View file

@ -1,4 +1,5 @@
let let
sources = import ../npins;
inherit (import ../default.nix { }) pkgs inputs; inherit (import ../default.nix { }) pkgs inputs;
inherit (pkgs) lib; inherit (pkgs) lib;
inherit (lib) mkOption types; inherit (lib) mkOption types;
@ -69,7 +70,11 @@ in
}; };
}; };
config = { 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 = apply =
requests: requests:
let let