From 3899927ced231cb25e65e5883789758d8fa2de10 Mon Sep 17 00:00:00 2001 From: wo2wz <189177184+wo2wz@users.noreply.github.com> Date: Sat, 22 Nov 2025 18:16:51 -0500 Subject: [PATCH] restic: rename user the restic rest server module uses a restic user --- modules/nixos/services/homeserver/restic/backups.nix | 2 +- modules/nixos/services/restic.nix | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/nixos/services/homeserver/restic/backups.nix b/modules/nixos/services/homeserver/restic/backups.nix index c05cd95..ee86741 100644 --- a/modules/nixos/services/homeserver/restic/backups.nix +++ b/modules/nixos/services/homeserver/restic/backups.nix @@ -43,7 +43,7 @@ services.restic.backups = { main = { - user = "restic"; + user = "restic-backup"; package = pkgs.writeShellScriptBin "restic" '' exec /run/wrappers/bin/restic "$@" ''; diff --git a/modules/nixos/services/restic.nix b/modules/nixos/services/restic.nix index ff42627..2ef3330 100644 --- a/modules/nixos/services/restic.nix +++ b/modules/nixos/services/restic.nix @@ -3,17 +3,17 @@ { # make wrapper to run restic rootless users = { - users.restic = { - group = "restic"; + users.restic-backup = { + group = "restic-backup"; isSystemUser = true; }; - groups.restic = {}; + groups.restic-backup = {}; }; security.wrappers.restic = { source = lib.getExe pkgs.restic; - owner = "restic"; - group = "restic"; + owner = "restic-backup"; + group = "restic-backup"; permissions = "500"; capabilities = "cap_dac_read_search+ep"; };