~magic_rb/dotfiles

2b707885abf70e6831129291658b001a8ad236d7 — Magic_RB 8 months ago 602b194
Fixup klipper container

Signed-off-by: Magic_RB <magic_rb@redalder.org>
1 files changed, 17 insertions(+), 3 deletions(-)

M nixos/systems/blowhole/klipper.nix
M nixos/systems/blowhole/klipper.nix => nixos/systems/blowhole/klipper.nix +17 -3
@@ 41,6 41,10 @@ in
    fsType = "zfs";
  };

  systemd.services."container@klipper" = {
    restartIfChanged = lib.mkForce false;
  };

  containers.klipper = {
    ephemeral = true;
    autoStart = true;


@@ 58,12 62,20 @@ in
        hostPath = "/var/lib/klipper";
        isReadOnly = false;
      };
      "/var/lib/moonraker/gcodes" = {
        hostPath = "/var/lib/klipper/gcodes";
        isReadOnly = false;
      };
      "/dev/serial/by-id/" = {
        hostPath = "/dev/serial/by-id/";
        isReadOnly = false;
      };
    };

    allowedDevices = [
      {
        node = "/dev/serial/by-id/usb-Klipper_lpc1768_13E0FF0C469027AEBAA84A52871E00F5-if00";
        modifier = "rw";
        modifier = "rwm";
      }
    ];



@@ 93,7 105,7 @@ in

        address = "10.64.99.6:19000";
        adminBind = "127.0.0.1:19100";
        hotRestart = true;
        hotRestart = false;
      };

      users.users.klipper = {


@@ 217,7 229,7 @@ in
          };

          virtual_sdcard = {
            path = "/var/lib/klipper/sdcard";
            path = "/var/lib/moonraker/gcodes";
          };

          ### Mainsail


@@ 451,6 463,8 @@ in
      services.moonraker = {
        enable = true;

        group = "klipper";

        settings = {
          authorization = {
            trusted_clients = with secret.network.ips; [