From 6a8252b11bb02f3e67857d5a9d733b1affa6a625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 16 Oct 2019 13:49:24 +0200 Subject: Add backup module --- modules/private/pub/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/private/pub') diff --git a/modules/private/pub/default.nix b/modules/private/pub/default.nix index c31c8eb..a193d17 100644 --- a/modules/private/pub/default.nix +++ b/modules/private/pub/default.nix @@ -11,6 +11,9 @@ }; config = lib.mkIf config.myServices.pub.enable { + services.backup.profiles.pub = { + rootDir = "/var/lib/pub"; + }; users.users.pub = let restrict = pkgs.runCommand "restrict" { file = ./restrict; -- cgit v1.2.3