aboutsummaryrefslogtreecommitdiff
path: root/modules/private/pub
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-10-16 13:49:24 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-10-16 13:49:24 +0200
commit6a8252b11bb02f3e67857d5a9d733b1affa6a625 (patch)
tree175cb91c386b444ce951361baaa4875136d5c9e4 /modules/private/pub
parent5304a64b84c5a84525c96419cc6126775af306e0 (diff)
downloadNix-6a8252b11bb02f3e67857d5a9d733b1affa6a625.tar.gz
Nix-6a8252b11bb02f3e67857d5a9d733b1affa6a625.tar.zst
Nix-6a8252b11bb02f3e67857d5a9d733b1affa6a625.zip
Add backup module
Diffstat (limited to 'modules/private/pub')
-rw-r--r--modules/private/pub/default.nix3
1 files changed, 3 insertions, 0 deletions
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 @@
11 }; 11 };
12 12
13 config = lib.mkIf config.myServices.pub.enable { 13 config = lib.mkIf config.myServices.pub.enable {
14 services.backup.profiles.pub = {
15 rootDir = "/var/lib/pub";
16 };
14 users.users.pub = let 17 users.users.pub = let
15 restrict = pkgs.runCommand "restrict" { 18 restrict = pkgs.runCommand "restrict" {
16 file = ./restrict; 19 file = ./restrict;