2022-12-04 08:53:28 +01:00
|
|
|
{ config, ... }:
|
2022-12-18 22:16:29 +01:00
|
|
|
|
2021-12-24 03:18:20 +01:00
|
|
|
{
|
2022-06-20 00:06:32 +02:00
|
|
|
microvm.mem = 2048;
|
2023-11-13 01:58:24 +01:00
|
|
|
c3d2.deployment.server = "server10";
|
2022-12-18 22:16:29 +01:00
|
|
|
|
2022-12-20 04:31:37 +01:00
|
|
|
networking.hostName = "blogs";
|
2021-12-24 03:18:20 +01:00
|
|
|
|
2023-06-05 21:37:55 +02:00
|
|
|
services = {
|
2023-11-12 02:54:14 +01:00
|
|
|
backup = {
|
|
|
|
enable = true;
|
2023-11-11 05:01:55 +01:00
|
|
|
paths = [ "/var/lib/plume/" ];
|
|
|
|
};
|
|
|
|
|
2023-06-05 21:37:55 +02:00
|
|
|
nginx = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts."blogs.c3d2.de" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/".proxyPass = "http://localhost:7878";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
plume = {
|
|
|
|
enable = true;
|
|
|
|
# See secrets/hosts/blogs for the .env file with all settings
|
|
|
|
envFile = config.sops.secrets."plume/env".path;
|
|
|
|
};
|
2021-12-29 21:32:20 +01:00
|
|
|
};
|
2021-12-25 02:02:45 +01:00
|
|
|
|
2022-07-31 18:13:03 +02:00
|
|
|
sops = {
|
|
|
|
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
|
|
|
defaultSopsFile = ./secrets.yaml;
|
|
|
|
secrets = {
|
|
|
|
"plume/env".owner = config.systemd.services.plume.serviceConfig.User;
|
2022-12-18 22:16:29 +01:00
|
|
|
};
|
2021-12-24 03:18:20 +01:00
|
|
|
};
|
2022-12-18 22:16:29 +01:00
|
|
|
|
|
|
|
system.stateVersion = "22.05";
|
2021-12-24 03:18:20 +01:00
|
|
|
}
|