1
Fork 0

Try to fix microbin permissions

This commit is contained in:
prescientmoon 2024-05-09 16:08:29 +02:00
parent e221636b45
commit 646ca5c5ec
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ config, lib, ... }:
let port = 8418;
in
{
@ -10,7 +10,7 @@ in
services.microbin = {
enable = true;
dataDir = "/persist/state/var/lib/microbin";
dataDir = "/var/lib/microbin";
# {{{ Settings
settings = {
@ -32,5 +32,10 @@ in
# }}}
};
systemd.tmpfiles.rules = [ "d ${config.services.microbin.dataDir}" ];
systemd.services.microbin.serviceConfig = {
# We want to use systemd's `StateDirectory` mechanism to fix permissions
ReadWritePaths = lib.mkForce [ ];
};
environment.persistence."/persist/state".directories = [ "/var/lib/microbin" ];
}