Add trilium
This commit is contained in:
parent
dcb50b0970
commit
ea30ca33ea
6 changed files with 38 additions and 0 deletions
|
|
@ -32,6 +32,12 @@
|
||||||
"/var/lib/hedgedoc"
|
"/var/lib/hedgedoc"
|
||||||
"/var/lib/nixos"
|
"/var/lib/nixos"
|
||||||
"/var/lib/private/ntfy-sh"
|
"/var/lib/private/ntfy-sh"
|
||||||
|
{
|
||||||
|
directory = "/var/lib/trilium";
|
||||||
|
user = "trilium";
|
||||||
|
group = "trilium";
|
||||||
|
mode = "u=rwx,g=rx,o=";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,5 +10,6 @@ custom-utils.validatePortAttrset {
|
||||||
nginx-http.tcp = 80;
|
nginx-http.tcp = 80;
|
||||||
nginx-https.tcp = 443;
|
nginx-https.tcp = 443;
|
||||||
ntfy.tcp = 12474;
|
ntfy.tcp = 12474;
|
||||||
|
trilium.tcp = 12783;
|
||||||
wireguard-public-ip-tunnel.udp = 51000;
|
wireguard-public-ip-tunnel.udp = 51000;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
./hedgedoc.nix
|
./hedgedoc.nix
|
||||||
./ntfy.nix
|
./ntfy.nix
|
||||||
./public-ip-tunnel.nix
|
./public-ip-tunnel.nix
|
||||||
|
./trilium.nix
|
||||||
./webserver.nix
|
./webserver.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
23
hosts/magnesium/services/trilium.nix
Normal file
23
hosts/magnesium/services/trilium.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
args@{ config, lib, pkgs, custom-utils, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
ports = import ../ports.nix args;
|
||||||
|
domain = "notes.jalr.de";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services.trilium-server = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.master.trilium-next-server;
|
||||||
|
host = "127.0.0.1";
|
||||||
|
port = ports.trilium.tcp;
|
||||||
|
nginx = {
|
||||||
|
enable = true;
|
||||||
|
hostName = domain;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."${domain}" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -38,6 +38,7 @@
|
||||||
./thunderbird.nix
|
./thunderbird.nix
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
./tor-browser.nix
|
./tor-browser.nix
|
||||||
|
./trilium.nix
|
||||||
./vdirsyncer.nix
|
./vdirsyncer.nix
|
||||||
./vesc-tool.nix
|
./vesc-tool.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
6
users/jalr/modules/trilium.nix
Normal file
6
users/jalr/modules/trilium.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{ nixosConfig, lib, pkgs, ... }:
|
||||||
|
lib.mkIf nixosConfig.jalr.gui.enable {
|
||||||
|
home.packages = with pkgs.master; [
|
||||||
|
trilium-next-desktop
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue