infrastructure/nixos/moonraker.nix

27 lines
572 B
Nix

_: {
services = {
moonraker = {
enable = true;
address = "0.0.0.0";
user = "octoprint";
port = 7125; # it's the default but i'm specifying it anyway
settings = {
octoprint_compat = { };
history = { };
authorization = {
force_logins = true;
cors_domains = [
"*.local"
"*.lan"
"*.gensokyo.zone"
];
trusted_clients = [
"10.0.0.0/8"
"127.0.0.0/8"
"::1/128"
];
};
};
};
};
}