forked from fediversity/fediversity
Compare commits
3 commits
7ce3902851
...
d91211f9a1
| Author | SHA1 | Date | |
|---|---|---|---|
| d91211f9a1 | |||
| 9c219341b1 | |||
| 8e8787d662 |
2 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue