git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/paperless-ng: fix mail importer

The private network setting was placed on the wrong service

commit16f80139f08397a41e6981dccf9f8ae5ff13d1a2 authorAntoine Martin <antoine@alarsyo.net> dateFri 25 Mar 2022, 18:26 (5 years ago) parent3180037
1 file changed+2−2
nixos/modules/services/misc/paperless-ng.nix+2−2
nixos/modules/services/misc/paperless-ng.nix+2−2
@@ -216,6 +216,8 @@ in
216216 Restart = "on-failure";
217217 # The `mbind` syscall is needed for running the classifier.
218218 SystemCallFilter = defaultServiceConfig.SystemCallFilter ++ [ "mbind" ];
219+ # Needs to talk to mail server for automated import rules
220+ PrivateNetwork = false;
219221 };
220222 environment = env;
221223 wantedBy = [ "multi-user.target" ];
@@ -258,8 +260,6 @@ in
258260 '${cfg.passwordFile}' '${cfg.dataDir}/superuser-password'
259261 '';
260262 Type = "oneshot";
261− # Needs to talk to mail server for automated import rules
262− PrivateNetwork = false;
263263 };
264264 };
265265