swap out nixops4 from implementation

This commit is contained in:
Kiara Grouwstra 2025-07-22 15:10:24 +02:00
parent 0c1628e8e1
commit 4a7b9f0f72
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -126,35 +126,12 @@ in
{
_class = "fediversity-environment";
resources.shell.login-shell.username = "operator";
implementation =
_requests:
{ providers, ... }:
{
_class = "nixops4Deployment";
providers = {
inherit (inputs.nixops4.modules.nixops4Provider) local;
};
# this seems checked according to {providers,resources,resource}.nix,
# values will not eagerly get checked, matching `providers.nix`'s `lazyAttrsOf`,
# whereas allowed keys seem to match those defined in `resource.nix`.
# the content of `resources.the-machine` however, follows `nixops4-nixos`,
# which is not allowed through our `type` yet.
resources.the-machine = {
_class = "nixops4Resource";
type = providers.local.exec;
imports = [
inputs.nixops4-nixos.modules.nixops4Resource.nixos
];
# nixos.module =
# { ... }:
# {
# _class = "nixos";
# users.users = config.resources.shell.login-shell.apply (
# lib.filterAttrs (_name: value: value ? login-shell) requests
# );
# };
};
};
implementation = requests: {
_class = "nixos";
users.users = config.resources.login-shell.policy.apply (
lib.filterAttrs (_name: value: value ? login-shell) requests
);
};
};
};
options = {