This commit is contained in:
Joakim Repomaa
2025-07-08 15:53:39 +03:00
parent 6fb5c1ffa5
commit 3a03103fc7
33 changed files with 45 additions and 1769 deletions

View File

@@ -1,14 +1,13 @@
{
lib,
inputs,
config,
pkgs,
pkgs-unstable,
...
}:
let
cfg = config.services.dnote;
fqdn = "${cfg.subdomain}.${config.networking.domain}";
pkgsUnstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system};
types = {
environment = lib.types.submodule {
@@ -91,7 +90,7 @@ in
after = [ "postgresql.service" ];
requires = [ "postgresql.service" ];
serviceConfig = {
ExecStart = "${pkgsUnstable.dnote}/bin/dnote-server -port ${toString cfg.port} start";
ExecStart = "${pkgs-unstable.dnote}/bin/dnote-server -port ${toString cfg.port} start";
EnvironmentFile = lib.mkIf (cfg.environmentFile != null) cfg.environmentFile;
User = cfg.user;
BindPaths = [