mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
service/hedgedoc: update to 22.11
This commit is contained in:
parent
cd9f8bcfbd
commit
57b440ad87
1 changed files with 10 additions and 10 deletions
|
@ -22,15 +22,9 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
configuration = mkOption {
|
||||
type = types.attrs;
|
||||
default = { };
|
||||
description = "additional configurations";
|
||||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.port;
|
||||
default = 3000;
|
||||
default = 3080;
|
||||
example = 8080;
|
||||
description = "Internal port for webui";
|
||||
};
|
||||
|
@ -40,16 +34,22 @@ in
|
|||
services.hedgedoc = {
|
||||
enable = true;
|
||||
|
||||
configuration = {
|
||||
settings = {
|
||||
domain = "notes.${domain}";
|
||||
inherit (cfg) port;
|
||||
host = "127.0.0.1";
|
||||
protocolUseSSL = true;
|
||||
db = {
|
||||
dialect = "sqlite";
|
||||
storage = "/var/lib/hedgedoc/db.hedgedoc.sqlite";
|
||||
storage = "/var/lib/hedgedoc/hedgedoc.sqlite";
|
||||
};
|
||||
} // cfg.configuration;
|
||||
} // cfg.settings;
|
||||
};
|
||||
|
||||
# temporary fix for: https://github.com/NixOS/nixpkgs/issues/198250
|
||||
#systemd.services.hedgedoc.serviceConfig.StateDirectory = lib.mkForce "/var/lib/hedgedoc";
|
||||
systemd.services.hedgedoc.serviceConfig.StateDirectory = lib.mkForce "hedgedoc";
|
||||
|
||||
my.services.nginx.virtualHosts = [
|
||||
{
|
||||
subdomain = "notes";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue