nixos-config/modules/nixos/services/restic.nix
2025-11-22 15:44:59 -05:00

20 lines
No EOL
380 B
Nix

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