Add trilium notes
This commit is contained in:
parent
5b35604d09
commit
1fe2860c13
6 changed files with 32 additions and 6 deletions
|
@ -14,6 +14,7 @@
|
|||
nginx.enable = true;
|
||||
owncast.enable = true;
|
||||
transmission.enable = true;
|
||||
trilium-server.enable = true;
|
||||
vaultwarden.enable = true;
|
||||
webserver.enable = true;
|
||||
wireguard.server.enable = true;
|
||||
|
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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!";
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
./nginx
|
||||
./owncast
|
||||
./transmission
|
||||
./trilium
|
||||
./vaultwarden
|
||||
./wireguard
|
||||
];
|
||||
|
|
14
modules/system/services/server/trilium/default.nix
Normal file
14
modules/system/services/server/trilium/default.nix
Normal 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" ];
|
||||
};
|
||||
}
|
11
modules/system/services/server/trilium/nginx/default.nix
Normal file
11
modules/system/services/server/trilium/nginx/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue