chore: fmt, feat(syncthing): allow on tailscale

This commit is contained in:
Kat Inskip 2024-09-02 23:17:24 -07:00
parent b7f5cd0562
commit b556db56cc
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
7 changed files with 89 additions and 65 deletions

View file

@ -78,7 +78,8 @@ in {
};
config.networking.firewall.allowedTCPPorts = let
inherit (nginx.virtualHosts.kitchencam) listen';
in mkIf listen'.stream.enable [
in
mkIf listen'.stream.enable [
listen'.stream.port
];
}

View file

@ -1,4 +1,10 @@
{ config, access, gensokyo-zone, lib, ... }: let
{
config,
access,
gensokyo-zone,
lib,
...
}: let
inherit (gensokyo-zone.lib) domain;
inherit (lib.modules) mkIf mkDefault mkForce;
inherit (lib.strings) removePrefix;
@ -22,7 +28,8 @@ in {
serviceName = "moonraker";
scheme = "";
};
in mkForce {
in
mkForce {
servers.${moonraker} = {};
};
virtualHosts = {

View file

@ -1,4 +1,9 @@
{ config, gensokyo-zone, lib, ... }: let
{
config,
gensokyo-zone,
lib,
...
}: let
inherit (gensokyo-zone.lib) mkAlmostOptionDefault;
inherit (lib.modules) mkIf mkDefault;
inherit (config.services) moonraker octoprint;

View file

@ -1,4 +1,10 @@
{ config, access, gensokyo-zone, lib, ... }: let
{
config,
access,
gensokyo-zone,
lib,
...
}: let
inherit (lib.modules) mkIf mkDefault;
inherit (gensokyo-zone.lib) domain;
inherit (config.services) klipper;

View file

@ -5,5 +5,10 @@
openDefaultPorts = true;
dataDir = "/mnt/kyuuto-litterbox";
};
networking.firewall.interfaces.local.allowedTCPPorts = [ 8384 ];
networking.firewall.interfaces = let
x.allowedTCPPorts = [8384];
in {
local = x;
tail = x;
};
}

View file

@ -1,11 +1,11 @@
{ stdenv
, lib
, fetchFromGitHub
, python3
, unstableGitUpdater
, makeWrapper
{
stdenv,
lib,
fetchFromGitHub,
python3,
unstableGitUpdater,
makeWrapper,
}:
stdenv.mkDerivation rec {
pname = "klipper";
version = "0.12.0-unstable-2024-07-05";
@ -81,4 +81,3 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Only;
};
}

View file

@ -1,13 +1,14 @@
{
buildPythonApplication
, fetchFromGitHub
, poetry-core
, pyserial
, pillow
, click
buildPythonApplication,
fetchFromGitHub,
poetry-core,
pyserial,
pillow,
click,
}: let
mainProgram = "niimprint";
in buildPythonApplication {
in
buildPythonApplication {
pname = "niimprint";
version = "2024_04_05";