2024-08-23 08:24:36 +00:00
|
|
|
{pkgs, ...}: {
|
|
|
|
virtualisation.vmVariant = {
|
|
|
|
# following configuration is added only when building VM with build-vm
|
|
|
|
virtualisation = {
|
|
|
|
memorySize = 2048; # Use 2048MiB memory.
|
|
|
|
cores = 3;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMNeQYLFauAbzDyIbKC86NUh9yZfiyBm/BtIdkcpZnSU"
|
|
|
|
];
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
users.users.root.initialPassword = "root";
|
|
|
|
|
|
|
|
users.users.nixosvmtest.isSystemUser = true ;
|
|
|
|
users.users.nixosvmtest.initialPassword = "test";
|
|
|
|
users.users.nixosvmtest.group = "nixosvmtest";
|
|
|
|
users.groups.nixosvmtest = {};
|
|
|
|
|
2024-08-24 19:18:34 +00:00
|
|
|
services.loomio = {
|
|
|
|
enable = true;
|
|
|
|
encyrptedCredentials = ./loomio-credentials.yml.enc;
|
|
|
|
credentialEncryptionKeyFile = ./loomio-master.key;
|
2024-08-23 08:24:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
services.postgresql = {
|
|
|
|
enable = true;
|
|
|
|
ensureDatabases = [ "loomio" ];
|
|
|
|
ensureUsers = [{
|
|
|
|
name = "loomio";
|
|
|
|
ensureDBOwnership = true;
|
2024-08-24 19:18:34 +00:00
|
|
|
ensureClauses.superuser = true;
|
2024-08-23 08:24:36 +00:00
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|