Add trilium notes

This commit is contained in:
Bun 2025-04-12 23:50:21 -04:00
parent 5b35604d09
commit 1fe2860c13
6 changed files with 32 additions and 6 deletions

View file

@ -14,6 +14,7 @@
nginx.enable = true; nginx.enable = true;
owncast.enable = true; owncast.enable = true;
transmission.enable = true; transmission.enable = true;
trilium-server.enable = true;
vaultwarden.enable = true; vaultwarden.enable = true;
webserver.enable = true; webserver.enable = true;
wireguard.server.enable = true; wireguard.server.enable = true;

View file

@ -3,12 +3,12 @@
programs.obs-studio = { programs.obs-studio = {
enable = config.home.production.enable; enable = config.home.production.enable;
plugins = with pkgs.obs-studio-plugins; [ plugins = with pkgs.obs-studio-plugins; [
obs-pipewire-audio-capture
obs-webkitgtk
obs-multi-rtmp
obs-vkcapture
obs-tuna
looking-glass-obs looking-glass-obs
obs-multi-rtmp
obs-pipewire-audio-capture
obs-tuna
obs-vkcapture
obs-webkitgtk
]; ];
}; };
} }

View file

@ -4,7 +4,6 @@
username = "bun"; username = "bun";
homeDirectory = "/home/${config.home.username}"; homeDirectory = "/home/${config.home.username}";
sessionVariables = { sessionVariables = {
EDITOR = "nvim";
ELECTRON_OZONE_PLATFORM_HINT = "auto"; ELECTRON_OZONE_PLATFORM_HINT = "auto";
LIBVIRT_DEFAULT_URI = "qemu:///system"; LIBVIRT_DEFAULT_URI = "qemu:///system";
MANPAGER = "nvim +Man!"; MANPAGER = "nvim +Man!";

View file

@ -16,6 +16,7 @@
./nginx ./nginx
./owncast ./owncast
./transmission ./transmission
./trilium
./vaultwarden ./vaultwarden
./wireguard ./wireguard
]; ];

View file

@ -0,0 +1,14 @@
{ config, lib, pkgs, ... }:
{
imports = [ ./nginx ];
config = lib.mkIf config.services.transmission.enable {
services.trilium-server = {
package = pkgs.trilium-next-server;
instanceName = "NixFox Notes";
port = 8012;
noBackup = true;
};
environment.persistence."/persist".directories = [ "/var/lib/trilium" ];
};
}

View file

@ -0,0 +1,11 @@
{ config, lib, ... }:
{
services.nginx.virtualHosts."notes.nixfox.ca" = lib.mkIf config.services.vaultwarden.enable {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8012";
proxyWebsockets = true;
};
};
}