nixos.moonraker: version change fixes
Old config locations were deprecated https://moonraker.readthedocs.io/en/latest/configuration/#option-moved-deprecations. Also, added PrivateTmp to accomodate for logs being unconditionally written there.
This commit is contained in:
parent
71dd63d59b
commit
e46430d503
|
@ -123,7 +123,11 @@ in {
|
||||||
host = cfg.address;
|
host = cfg.address;
|
||||||
port = cfg.port;
|
port = cfg.port;
|
||||||
klippy_uds_address = cfg.klipperSocket;
|
klippy_uds_address = cfg.klipperSocket;
|
||||||
|
};
|
||||||
|
file_manager = {
|
||||||
config_path = cfg.configDir;
|
config_path = cfg.configDir;
|
||||||
|
};
|
||||||
|
database = {
|
||||||
database_path = "${cfg.stateDir}/database";
|
database_path = "${cfg.stateDir}/database";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -153,6 +157,7 @@ in {
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
WorkingDirectory = cfg.stateDir;
|
WorkingDirectory = cfg.stateDir;
|
||||||
|
PrivateTmp = true;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
};
|
};
|
||||||
|
@ -175,4 +180,9 @@ in {
|
||||||
});
|
});
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
meta.maintainers = with maintainers; [
|
||||||
|
cab404
|
||||||
|
vtuan10
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue