feat: host octoprint on laptop

This commit is contained in:
Patrick 2024-08-15 13:43:40 +02:00
parent 48d0d08e4d
commit 6176d81fae
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
6 changed files with 29 additions and 2 deletions

View file

@ -4,6 +4,14 @@
client.via = "elisabeth";
firewallRuleForNode.elisabeth.allowedTCPPorts = [ config.services.octoprint.port ];
};
environment.persistence."/persist".directories = [
{
directory = "/var/lib/octoprint/";
user = "octoprint";
group = "octoprint";
mode = "750";
}
];
services.octoprint = {
port = 3000;
enable = true;

View file

@ -36,8 +36,8 @@ let
# TODO hard coded elisabeth nicht so schön
ipOf =
hostName:
if nodes ? ${hostName} then
nodes.${hostName}.config.wireguard.elisabeth.ipv4
if hostName == "octoprint" then
nodes.patricknix.config.wireguard.elisabeth.ipv4
else
nodes."elisabeth-${hostName}".config.wireguard.elisabeth.ipv4;
in

View file

@ -18,6 +18,8 @@
../../config/hardware/prime-offload.nix
../../config/hardware/yubikey.nix
../../config/services/octoprint.nix
../../config/optional/dev.nix
../../config/optional/graphical.nix
../../config/optional/printing.nix

View file

@ -0,0 +1,16 @@
age-encryption.org/v1
-> X25519 kZNXioiEjSwPSSCQfLIUHJ/Po3Kjyzexkm9JOT02CUU
ZDtL78nQ9iM5br5keKL/HuuLO31giHa40m5YhoNkeN8
-> piv-p256 ZFgiIw AgNxOYUDaV1QTaV+IyMF09gouj/UtJA+y8H9h/MrgVM1
luS8js59wJ3cfsEloakGvoMmMWNkkq3Rc/AAvbxCA0I
-> piv-p256 XTQkUA A97+iI4FmLSEqnBpW7MJDFocMQBnv1yl5sNPLsZzapzP
CEmzOhcv6V6OGC3fpP8pUomlIRZxj05TQyYdDEtVwbI
-> piv-p256 ZFgiIw Az7qLW7ASn9x4PQt5yswl6BWULosp8j9D1sIlYe+E+XW
g80n2hOdx1m8pw8jeCFPHOH34bOApNVxapgiQj13USc
-> piv-p256 5vmPtQ Aj9Px4PctikcatMGBt7PTghHWLGtUXu0dbWUBROppbnX
5uYv5eEaZ6nfaId6JUaQSjbwTwZ+uyv7wSppAFZFnAM
-> )K-#NG;f-grease w] Do
Jlm3URc6Elpr7TIlK8e5K6Xu1Xy1f/mpG6XgdWgPRbNNOf0dXddDRuFT3g6lf6tK
FVmTXrLndZmPq33DD0WP6MwtBWmDCeh59/3DpjmvSxppM6Q
--- Pj8J65gm8i3w3GErpi1PXNdeQs/8cGkG2vetkgOifis
<06>ÿ·mBÑò¸¸F àºîG“…‰pRbúÎeƒ:8þiG8<47>Uyl +V`01ççà4<C3A0>ƒ´±ŒŽº¹Êèá+¢ñBâîó£&

View file

@ -0,0 +1 @@
2l6LxDMuuo+vr3aAraMbaVrCMHbWNNIujpwjDD/UPWA=