From 41f8d468b62a18d4e3bb8e7178e332ba6900407a Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 6 Apr 2021 10:47:05 +0200 Subject: [PATCH] restic/system: Include /root and /etc --- modules/restic/system.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/restic/system.nix b/modules/restic/system.nix index 2b7844a..cf96530 100644 --- a/modules/restic/system.nix +++ b/modules/restic/system.nix @@ -26,6 +26,9 @@ let # Docker (state should be kept somewhere else) "/var/lib/docker/" + + # Static configuration (generated from this repository) + "/etc/static/" ] ++ cfg.extraExcludes; excludesFile = pkgs.writeText "excludes.txt" (lib.concatStringsSep "\n" excludes); @@ -75,7 +78,9 @@ in passwordFile = config.krops.secrets.restic-password.path; s3CredentialsFile = config.krops.secrets.restic-s3.path; paths = [ + "/etc" "/home" + "/root" "/srv" "/var" ] ++ cfg.extraPaths;