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}" ]; };