From 0def8bfab10cf3d07e5adb49fb364d03a4ad9d51 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Mon, 25 Sep 2023 15:50:20 +0200 Subject: [PATCH] Add server module and new browser --- nixos-configurations/server/default.nix | 32 +++++++++++++++++-------- nixos-configurations/shared-desktop.nix | 1 + 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/nixos-configurations/server/default.nix b/nixos-configurations/server/default.nix index 225fd66..853a852 100644 --- a/nixos-configurations/server/default.nix +++ b/nixos-configurations/server/default.nix @@ -57,6 +57,28 @@ }; }; }; + hedgedoc = { + enable = true; + settings = { + port = 3300; + domain = "collab.thilohohlt.com"; + useSSL = true; + db = { + dialect = "postgres"; + host = "/run/postgresql"; + database = "hedgedoc"; + }; + }; + }; + postgresql = { + enable = true; + package = pkgs.postgresql_15; + ensureDatabases = [ "dcbot" "hedgedoc" ]; + authentication = pkgs.lib.mkOverride 10 '' + #type database DBuser auth-method + local all all trust + ''; + }; }; security = { @@ -69,16 +91,6 @@ ''; }; - services.postgresql = { - enable = true; - package = pkgs.postgresql_15; - ensureDatabases = [ "dcbot" ]; - authentication = pkgs.lib.mkOverride 10 '' - #type database DBuser auth-method - local all all trust - ''; - }; - systemd.services.denbot = { description = "Thilo's Den discord bot"; wantedBy = ["multi-user.target"]; diff --git a/nixos-configurations/shared-desktop.nix b/nixos-configurations/shared-desktop.nix index 5aea56e..8070af9 100644 --- a/nixos-configurations/shared-desktop.nix +++ b/nixos-configurations/shared-desktop.nix @@ -85,6 +85,7 @@ teamspeak5_client discord qbittorrent + chromium ]; }; };