From 3b224987827020decbabc4995e174b6dc3cec4ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikodem=20Rabuli=C5=84ski?= Date: Wed, 7 Feb 2024 11:20:13 +0100 Subject: [PATCH] hosts/kazuki: fix storage-box permissions --- hosts/kazuki/attic.nix | 7 +++++-- hosts/kazuki/storage.nix | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hosts/kazuki/attic.nix b/hosts/kazuki/attic.nix index 3f806c3..920a2f0 100644 --- a/hosts/kazuki/attic.nix +++ b/hosts/kazuki/attic.nix @@ -21,7 +21,7 @@ in { listen = "[::]:${toString atticPort}"; storage = { type = "local"; - path = "/storage-box/attic"; + path = "/storage-box"; }; compression.type = "zstd"; chunking = { @@ -37,12 +37,15 @@ in { users = { users.atticd = { + uid = 990; isSystemUser = true; group = "atticd"; home = "/var/lib/atticd"; createHome = true; }; - groups.atticd = {}; + groups.atticd = { + gid = 988; + }; }; systemd.services.atticd = { diff --git a/hosts/kazuki/storage.nix b/hosts/kazuki/storage.nix index 05d187f..bef3cd3 100644 --- a/hosts/kazuki/storage.nix +++ b/hosts/kazuki/storage.nix @@ -18,6 +18,8 @@ "x-systemd.idle-timeout=60" "x-systemd.device-timeout=5s" "x-systemd.mount-timeout=5s" + "uid=${toString config.users.users.atticd.uid}" + "gid=${toString config.users.groups.atticd.gid}" "credentials=${config.age.secrets.storage-box-creds.path}" ]; };