1
0
mirror of https://github.com/kmein/niveum synced 2026-03-30 01:01:10 +02:00

2 Commits

2 changed files with 3 additions and 1 deletions

View File

@@ -21,6 +21,8 @@ in
]; ];
}; };
systemd.services.restic-backups-niveum.requires = [ "tinc.retiolum.service" ];
environment.systemPackages = [ environment.systemPackages = [
(pkgs.writers.writeDashBin "restic-niveum" '' (pkgs.writers.writeDashBin "restic-niveum" ''
${pkgs.restic}/bin/restic -r ${restic.repository} -p ${<secrets/restic/password>} "$@" ${pkgs.restic}/bin/restic -r ${restic.repository} -p ${<secrets/restic/password>} "$@"

View File

@@ -17,7 +17,7 @@ in
environment.systemPackages = [ environment.systemPackages = [
(pkgs.writers.writeDashBin "restic-niveum" '' (pkgs.writers.writeDashBin "restic-niveum" ''
${pkgs.restic}/bin/restic -r ${toString dataDir} -p ${<secrets/restic/password>} "$@" exec ${pkgs.util-linux}/bin/runuser -u restic -g restic ${pkgs.restic}/bin/restic -r ${toString dataDir} -p ${<secrets/restic/password>} "$@"
'') '')
]; ];