From dd971dcd1d12cc6c413a501b200d98aa3aa6ccc2 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Fri, 7 Jul 2023 13:50:40 +0100 Subject: [PATCH] Use a fixed uid/gid for storing files. --- hosts/common/seaweedfs_lib.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/common/seaweedfs_lib.nix b/hosts/common/seaweedfs_lib.nix index d17aa5b..00b365d 100644 --- a/hosts/common/seaweedfs_lib.nix +++ b/hosts/common/seaweedfs_lib.nix @@ -135,8 +135,9 @@ in { users.users.${user} = { description = "SeaweedFS user"; isSystemUser = true; + uid = 10000; }; - users.groups.${group} = { }; + users.groups.${group}.gid = 10000; systemd.services = (mapAttrs' mkVolumeService enabledVolumes) // { seaweedfs-master = mkIf cfg.master.enable { wantedBy = [ "multi-user.target" ];