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}";
|
listen = "[::]:${toString atticPort}";
|
||||||
storage = {
|
storage = {
|
||||||
type = "local";
|
type = "local";
|
||||||
path = "/storage-box/attic";
|
path = "/storage-box";
|
||||||
};
|
};
|
||||||
compression.type = "zstd";
|
compression.type = "zstd";
|
||||||
chunking = {
|
chunking = {
|
||||||
|
@ -37,12 +37,15 @@ in {
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
users.atticd = {
|
users.atticd = {
|
||||||
|
uid = 990;
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = "atticd";
|
group = "atticd";
|
||||||
home = "/var/lib/atticd";
|
home = "/var/lib/atticd";
|
||||||
createHome = true;
|
createHome = true;
|
||||||
};
|
};
|
||||||
groups.atticd = {};
|
groups.atticd = {
|
||||||
|
gid = 988;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.atticd = {
|
systemd.services.atticd = {
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
"x-systemd.idle-timeout=60"
|
"x-systemd.idle-timeout=60"
|
||||||
"x-systemd.device-timeout=5s"
|
"x-systemd.device-timeout=5s"
|
||||||
"x-systemd.mount-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}"
|
"credentials=${config.age.secrets.storage-box-creds.path}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue