mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-01-19 17:39:15 +01:00
26 lines
596 B
Nix
26 lines
596 B
Nix
{ config, lib, values, ... }:
|
|
let
|
|
cfg = config.services.journald.upload;
|
|
in
|
|
{
|
|
services.journald.upload = {
|
|
enable = lib.mkDefault true;
|
|
settings.Upload = {
|
|
URL = "https://journald.pvv.ntnu.no:${toString config.services.journald.remote.port}";
|
|
ServerKeyFile = "-";
|
|
ServerCertificateFile = "-";
|
|
TrustedCertificateFile = "-";
|
|
};
|
|
};
|
|
|
|
systemd.services."systemd-journal-upload".serviceConfig = lib.mkIf cfg.enable {
|
|
IPAddressDeny = "any";
|
|
IPAddressAllow = [
|
|
"127.0.0.1"
|
|
"::1"
|
|
values.ipv4-space
|
|
values.ipv6-space
|
|
];
|
|
};
|
|
}
|