From 98ce5b1387d63be2cf6250c7375acd76d7bd8413 Mon Sep 17 00:00:00 2001 From: "Ricardo (XenGi) Band" Date: Wed, 2 Dec 2026 13:23:30 +0100 Subject: [PATCH] fmt --- hosts/prusa-connect/prusa-connect.nix | 73 ++++++++++++++------------- 1 file changed, 37 insertions(+), 36 deletions(-) diff --git a/hosts/prusa-connect/prusa-connect.nix b/hosts/prusa-connect/prusa-connect.nix index 5bd39a1..354e10c 100644 --- a/hosts/prusa-connect/prusa-connect.nix +++ b/hosts/prusa-connect/prusa-connect.nix @@ -10,47 +10,48 @@ in ]; environment.etc."prusa-connect/config.yaml".source = - (pkgs.formats.yaml {}).generate "config.yaml" { - core = { - site = "cccb"; - api = { - addr = ":8080"; - allowed_origins = [ - "https://prusa-connect.club.berlin.ccc.de" - ]; - #tls = { - # certificate = config.acme...; - # key = config.acme...; - #}; + (pkgs.formats.yaml { }).generate "config.yaml" + { + core = { + site = "cccb"; + api = { + addr = ":8080"; + allowed_origins = [ + "https://prusa-connect.club.berlin.ccc.de" + ]; + #tls = { + # certificate = config.acme...; + # key = config.acme...; + #}; + }; + trusted_proxies = [ + "10.88.0.1" + "127.0.0.1" + ]; + log = { + level = "info"; + format = "text"; + }; + frontend = { + enabled = true; + title = "CCCB Prusa Connect Local"; + printer_address = "https://172.23.42.30"; + }; + discovery.host_records = "system"; + }; + persistence.type = "sqlite"; + resources = { + storage.local = { + type = "filesystem"; + config.root = "/var/lib/prusa-connect/storage"; + }; + }; }; - trusted_proxies = [ - "10.88.0.1" - "127.0.0.1" - ]; - log = { - level = "info"; - format = "text"; - }; - frontend = { - enabled = true; - title = "CCCB Prusa Connect Local"; - printer_address = "https://172.23.42.30"; - }; - discovery.host_records = "system"; - }; - persistence.type = "sqlite"; - resources = { - storage.local = { - type = "filesystem"; - config.root = "/var/lib/prusa-connect/storage"; - }; - }; - }; virtualisation.oci-containers.containers.prusa-connect = { labels."io.containers.autoupdate" = "registry"; image = "ghcr.io/prusa3d/prusa-connect:0.1.0-beta.2"; - environment = {}; + environment = { }; ports = [ "127.0.0.1:8080:8080" ]; #extraOptions = [ "--network=host" ]; pull = "newer";