hosts/kazuki: fix storage-box permissions

This commit is contained in:
Nikodem Rabuliński 2024-02-07 11:20:13 +01:00
parent 98dd00f5f0
commit 3b22498782
2 changed files with 7 additions and 2 deletions

View file

@ -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 = {

View file

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