vikunja was very overkill, i will look for something simpler
This commit is contained in:
parent
d41e61f0ed
commit
e529c90200
4 changed files with 0 additions and 61 deletions
|
@ -19,14 +19,6 @@ in {
|
|||
domain = email-domain;
|
||||
};
|
||||
|
||||
vikunja = {
|
||||
enable = true;
|
||||
domain = {
|
||||
full = "todo.${web-domain}";
|
||||
base = web-domain;
|
||||
};
|
||||
};
|
||||
|
||||
website = {
|
||||
enable = true;
|
||||
domain = {
|
||||
|
|
|
@ -21,7 +21,6 @@ in {
|
|||
./secureboot
|
||||
./ssh
|
||||
./utils
|
||||
./vikunja
|
||||
./vm
|
||||
./website
|
||||
./yubikey
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
cfg = config.conf.vikunja;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
services.nginx.virtualHosts.${cfg.domain.full} = {
|
||||
forceSSL = true;
|
||||
useACMEHost = cfg.domain.base;
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://localhost:${toString cfg.port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.vikunja = {
|
||||
enable = true;
|
||||
frontendScheme = "http";
|
||||
frontendHostname = cfg.domain.full;
|
||||
port = cfg.port;
|
||||
settings = {
|
||||
service = {
|
||||
enableregistration = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
21
options.nix
21
options.nix
|
@ -149,27 +149,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
vikunja = {
|
||||
enable = mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
};
|
||||
domain = {
|
||||
base = mkOption {
|
||||
type = nullOr str;
|
||||
default = null;
|
||||
};
|
||||
full = mkOption {
|
||||
type = nullOr str;
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
port = mkOption {
|
||||
type = port;
|
||||
default = 7070;
|
||||
};
|
||||
};
|
||||
|
||||
website = {
|
||||
enable = mkOption {
|
||||
type = bool;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue