From 3569a4c3b8938be40a6f902253762f7aba40aa41 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 15 Apr 2022 16:17:14 +0200 Subject: [PATCH] services: paperless: fix service name --- services/paperless.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/services/paperless.nix b/services/paperless.nix index 9ed9537..90197ce 100644 --- a/services/paperless.nix +++ b/services/paperless.nix @@ -44,7 +44,7 @@ in { }; config = mkIf cfg.enable { - services.paperless-ng = { + services.paperless = { enable = true; port = cfg.port; passwordFile = cfg.passwordFile; @@ -67,15 +67,15 @@ in { }; systemd.services = { - paperless-ng-server.serviceConfig = { + paperless-server.serviceConfig = { EnvironmentFile = cfg.secretKeyFile; }; - paperless-ng-consumer.serviceConfig = { + paperless-consumer.serviceConfig = { EnvironmentFile = cfg.secretKeyFile; }; - paperless-ng-web.serviceConfig = { + paperless-web.serviceConfig = { EnvironmentFile = cfg.secretKeyFile; }; }; @@ -91,7 +91,7 @@ in { ]; }; - systemd.services.paperless-ng-server = { + systemd.services.paperless-server = { # Make sure the DB is available after = ["postgresql.service"]; }; @@ -124,8 +124,8 @@ in { my.services.restic-backup = mkIf cfg.enable { paths = [ - config.services.paperless-ng.dataDir - config.services.paperless-ng.mediaDir + config.services.paperless.dataDir + config.services.paperless.mediaDir ]; }; };