nixos-config/modules/nixos/services/restic.nix
wo2wz 3899927ced restic: rename user
the restic rest server module uses a restic user
2025-11-22 22:38:17 -05:00

20 lines
No EOL
415 B
Nix

{ config, pkgs, lib, ... }:
{
# make wrapper to run restic rootless
users = {
users.restic-backup = {
group = "restic-backup";
isSystemUser = true;
};
groups.restic-backup = {};
};
security.wrappers.restic = {
source = lib.getExe pkgs.restic;
owner = "restic-backup";
group = "restic-backup";
permissions = "500";
capabilities = "cap_dac_read_search+ep";
};
}