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

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

View file

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

View file

@ -16,6 +16,7 @@
./nginx
./owncast
./transmission
./trilium
./vaultwarden
./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;
};
};
}