nixos/paperless-ng: fix mail importer

The private network setting was placed on the wrong service
This commit is contained in:
Antoine Martin 2022-03-25 18:26:38 +01:00
parent 3180037c84
commit 16f80139f0

View file

@ -216,6 +216,8 @@ in
Restart = "on-failure";
# The `mbind` syscall is needed for running the classifier.
SystemCallFilter = defaultServiceConfig.SystemCallFilter ++ [ "mbind" ];
# Needs to talk to mail server for automated import rules
PrivateNetwork = false;
};
environment = env;
wantedBy = [ "multi-user.target" ];
@ -258,8 +260,6 @@ in
'${cfg.passwordFile}' '${cfg.dataDir}/superuser-password'
'';
Type = "oneshot";
# Needs to talk to mail server for automated import rules
PrivateNetwork = false;
};
};