Compare commits

...

3 commits

2 changed files with 7 additions and 3 deletions

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

View file

@ -31,6 +31,7 @@ let
inputs.nixops4.modules.nixops4Deployment.default inputs.nixops4.modules.nixops4Deployment.default
{ {
_class = "nixops4Deployment";
_module.args = { _module.args = {
resourceProviderSystem = builtins.currentSystem; resourceProviderSystem = builtins.currentSystem;
resources = { }; resources = { };
@ -40,8 +41,6 @@ let
}; };
in in
{ {
_class = "nixops4Deployment";
options = { options = {
resources = mkOption { resources = mkOption {
description = "Collection of deployment resources that can be required by applications and policed by hosting providers"; description = "Collection of deployment resources that can be required by applications and policed by hosting providers";