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:
cab 2022-09-23 02:27:27 +04:00
parent 71dd63d59b
commit e46430d503
No known key found for this signature in database
GPG key ID: 08AA9711F8CD40CF

View file

@ -123,7 +123,11 @@ in {
host = cfg.address;
port = cfg.port;
klippy_uds_address = cfg.klipperSocket;
};
file_manager = {
config_path = cfg.configDir;
};
database = {
database_path = "${cfg.stateDir}/database";
};
};
@ -153,6 +157,7 @@ in {
serviceConfig = {
WorkingDirectory = cfg.stateDir;
PrivateTmp = true;
Group = cfg.group;
User = cfg.user;
};
@ -175,4 +180,9 @@ in {
});
'';
};
meta.maintainers = with maintainers; [
cab404
vtuan10
];
}