hosts/kazuki: fix storage-box permissions
This commit is contained in:
parent
98dd00f5f0
commit
3b22498782
2 changed files with 7 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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}"
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue