moonraker: disable check_klipper_config if klipper is immutable

This commit is contained in:
eyjhb 2023-12-16 21:55:54 +01:00
parent da285ab5e5
commit 0fc323eeef
No known key found for this signature in database
GPG Key ID: 7A27BE40E090A3E4

View File

@ -186,6 +186,12 @@ in {
};
};
# set this to false, otherwise we'll get a warning indicating that `/etc/klipper.cfg`
# is not located in the moonraker config directory.
services.moonraker.settings = lib.mkIf (!config.services.klipper.mutableConfig) {
file_manager.check_klipper_config_path = false;
};
security.polkit.extraConfig = lib.optionalString cfg.allowSystemControl ''
// nixos/moonraker: Allow Moonraker to perform system-level operations
//