This adds a vm create test for the `clan join` scenario where: - there is no local clan to write changes to - a machine from a remote flake needs to be built and run - no users and no secrets need to be or can be managed (no flake to write files to)
21 lines
573 B
Nix
21 lines
573 B
Nix
{ lib, ... }: {
|
|
clan.networking.deploymentAddress = "__CLAN_DEPLOYMENT_ADDRESS__";
|
|
system.stateVersion = lib.version;
|
|
sops.age.keyFile = "__CLAN_SOPS_KEY_PATH__";
|
|
clanCore.secretsUploadDirectory = "__CLAN_SOPS_KEY_DIR__";
|
|
clan.virtualisation.graphics = false;
|
|
|
|
clan.networking.zerotier.controller.enable = true;
|
|
networking.useDHCP = false;
|
|
|
|
systemd.services.shutdown-after-boot = {
|
|
enable = true;
|
|
wantedBy = [ "multi-user.target" ];
|
|
after = [ "multi-user.target" ];
|
|
script = ''
|
|
#!/usr/bin/env bash
|
|
shutdown -h now
|
|
'';
|
|
};
|
|
}
|