nixos-systems/modules/system/vikunja.nix
Eli Ribble b652029e73 Remove seafile
I like Cloudreve well enough, and didn't like Seafile much
2025-09-09 15:07:32 +00:00

47 lines
1.2 KiB
Nix

{ pkgs, lib, config, ... }:
with lib;
{
options.myModules.vikunja.enable = mkEnableOption "custom vikunja configuration";
config = mkIf config.myModules.vikunja.enable {
services.caddy.virtualHosts."todo.gleipnir.technology".extraConfig = ''
reverse_proxy http://127.0.0.1:10010
'';
services.postgresql = {
authentication = pkgs.lib.mkOverride 10 ''
#type database DBuser auth-method
local all all trust
'';
enable = true;
ensureDatabases = [ "vikunja" ];
ensureUsers = [{
ensureClauses.login = true;
ensureDBOwnership = true;
name = "vikunja";
}];
};
services.vikunja = {
enable = true;
frontendHostname = "todo.gleipnir.technology";
frontendScheme = "https";
settings = {
service.interface = lib.mkForce "127.0.0.1:3456";
};
};
sops.secrets.vikunja = {
format = "yaml";
group = "vikunja";
key = "";
owner = "vikunja";
path = "/etc/vikunja/config.yaml";
restartUnits = [ "vikunja.service" ];
sopsFile = ../../secrets/vikunja.yaml;
};
users.groups.vikunja = {};
users.users.vikunja = {
group = "vikunja";
isNormalUser = false;
isSystemUser = true;
};
};
}