forked from Fediversity/Fediversity
pass in description fix syntax configure proxmox provider typo add doc comment in existing modules add comment allow insecure proxmox connection for use in dev wip proxmox progress use service configurations moved to machine-independent location wire settings directly without option block terraform adjust cwd try tf on null input update .envrc.sample with sample proxmox credentials
27 lines
626 B
Nix
27 lines
626 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
inherit (config.terraform) hostname domain initialUser;
|
|
sources = import ../../npins;
|
|
in
|
|
{
|
|
imports = [
|
|
"${sources.agenix}/modules/age.nix"
|
|
"${sources.disko}/module.nix"
|
|
../../services/fediversity
|
|
./resource.nix
|
|
];
|
|
fediversityVm.name = hostname;
|
|
fediversity = {
|
|
inherit domain;
|
|
temp.initialUser = {
|
|
inherit (initialUser) username email displayName;
|
|
# FIXME: disgusting, but nvm, this is going to be replaced by
|
|
# proper central authentication at some point
|
|
passwordFile = pkgs.writeText "password" initialUser.password;
|
|
};
|
|
};
|
|
}
|