{ pkgs, terraform, ... }: let inherit (terraform) hostname; in { imports = [ ../services/fediversity ./resource.nix # FIXME: get VM details from TF ../infra/test-machines/${hostname} ]; fediversityVm.name = hostname; fediversity = { inherit (terraform) domain; temp.initialUser = { inherit (terraform.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" terraform.initialUser.password; }; }; }