Skip to content

Commit

Permalink
nixos/trilium: add adjustable package
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran authored and FliegendeWurst committed Nov 18, 2024
1 parent 7ecba06 commit 258766a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixos/modules/services/web-apps/trilium.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ in
options.services.trilium-server = with lib; {
enable = mkEnableOption "trilium-server";

package = mkPackageOption pkgs "trilium-server" {};

dataDir = mkOption {
type = types.str;
default = "/var/lib/trilium";
Expand Down Expand Up @@ -117,7 +119,7 @@ in
wantedBy = [ "multi-user.target" ];
environment.TRILIUM_DATA_DIR = cfg.dataDir;
serviceConfig = {
ExecStart = "${pkgs.trilium-server}/bin/trilium-server";
ExecStart = lib.getExe cfg.package;
User = "trilium";
Group = "trilium";
PrivateTmp = "true";
Expand Down

0 comments on commit 258766a

Please sign in to comment.