diff --git a/machines/compute01/_configuration.nix b/machines/compute01/_configuration.nix index b9903a9..cfe8f9a 100644 --- a/machines/compute01/_configuration.nix +++ b/machines/compute01/_configuration.nix @@ -21,10 +21,11 @@ lib.extra.mkConfig { "outline" "rstudio-server" "satosa" + "signald" + "stirling-pdf" "telegraf" "vaultwarden" "zammad" - "signald" ]; extraConfig = { diff --git a/machines/compute01/stirling-pdf.nix b/machines/compute01/stirling-pdf.nix new file mode 100644 index 0000000..6acd590 --- /dev/null +++ b/machines/compute01/stirling-pdf.nix @@ -0,0 +1,22 @@ +{ nixpkgs, ... }: + +{ + services.stirling-pdf = { + enable = true; + + package = nixpkgs.unstable.stirling-pdf; + + domain = "pdf.dgnum.eu"; + port = 8084; + + nginx = { + enableACME = true; + forceSSL = true; + }; + + environment = { + UI_APP_NAME = "DGNum PDF"; + APP_LOCALE = "fr-FR"; + }; + }; +} diff --git a/meta/dns.nix b/meta/dns.nix index 91611ed..ac148e2 100644 --- a/meta/dns.nix +++ b/meta/dns.nix @@ -52,6 +52,7 @@ let "nms" # LibreNMS "pads" # Hedgedoc "pass" # Vaultwarden + "pdf" # Stirling PDF "saml-idp" # Satosa "social" # Mastodon "sso" # Kanidm diff --git a/meta/nodes.nix b/meta/nodes.nix index 12bcbfe..4cd83ad 100644 --- a/meta/nodes.nix +++ b/meta/nodes.nix @@ -34,6 +34,7 @@ site = "pav01"; stateVersion = "23.05"; + nix-modules = [ "services/stirling-pdf" ]; }; geo01 = { diff --git a/npins/sources.json b/npins/sources.json index 602db04..f119be3 100644 --- a/npins/sources.json +++ b/npins/sources.json @@ -120,9 +120,9 @@ "url": "https://git.hubrecht.ovh/hubrecht/nix-modules.git" }, "branch": "main", - "revision": "f946e8843084f4ae9632ef583189dc83375fcd61", + "revision": "7ff1d1d3740edd31e379e8aaf3108e3f13b6f31c", "url": null, - "hash": "0bkymf0mk01igjvmws035jjazcr2c6w0hc0d1yq8mh7h404qzfri" + "hash": "0r9ga9kkrwwdjd769hq54hlnh4sz3nm5iigwhfg1qrd0nmrh57cw" }, "nix-patches": { "type": "GitRelease",