forked from Fediversity/Fediversity
adjust deployment type
this is a cop-out possible until fricklerhandwerk/Fediversity#15. after that, this will require actually figuring out how to get `options` for `deployment.nix` - which may need `evalModules` with `data-model.nix`.
This commit is contained in:
parent
217143814e
commit
f5a7552347
2 changed files with 3 additions and 2 deletions
|
@ -146,6 +146,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"example-deployment" = mkOption {
|
"example-deployment" = mkOption {
|
||||||
|
type = config.environments.single-nixos-vm.resource-mapping.output-type;
|
||||||
default = config.environments.single-nixos-vm.deployment config."example-configuration";
|
default = config.environments.single-nixos-vm.deployment config."example-configuration";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -31,7 +31,7 @@ in
|
||||||
expr =
|
expr =
|
||||||
let
|
let
|
||||||
fediversity = eval (
|
fediversity = eval (
|
||||||
{ config, options, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
resources.login-shell = {
|
resources.login-shell = {
|
||||||
|
@ -148,7 +148,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"example-deployment" = mkOption {
|
"example-deployment" = mkOption {
|
||||||
type = options.deployments.nestedType;
|
type = config.environments.single-nixos-vm.resource-mapping.output-type;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
default = config.environments.single-nixos-vm.deployment config."example-configuration";
|
default = config.environments.single-nixos-vm.deployment config."example-configuration";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue