nixfiles/nixos/servers/monica/monica.nix
2024-06-08 17:25:08 -07:00

21 lines
528 B
Nix

{ config, ... }: {
sops.secrets.monica_appkey = {
sopsFile = ./secrets.yaml;
owner = config.services.monica.user;
group = config.services.monica.group;
};
services.monica = {
enable = true;
hostname = "monica.kittywit.ch";
appURL = "https://monica.kittywit.ch";
appKeyFile = config.sops.secrets.monica_appkey.path;
nginx = {
serverName = "monica.kittywit.ch";
serverAliases = [
"monica.kittywit.ch"
];
enableACME = true;
forceSSL = true;
};
};
}