feat: host octoprint on laptop
This commit is contained in:
parent
48d0d08e4d
commit
6176d81fae
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
16
secrets/wireguard/elisabeth/keys/patricknix.age
Normal file
16
secrets/wireguard/elisabeth/keys/patricknix.age
Normal 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>ÿ·m›BÑò¸¸F
àºîG“…‰pRbúÎeƒ:8þiG8<47>Uyl
+V›`01ç‹çà4<C3A0>ƒ´±ŒŽº¹Êèá+¢ñB‘âîó£&
|
1
secrets/wireguard/elisabeth/keys/patricknix.pub
Normal file
1
secrets/wireguard/elisabeth/keys/patricknix.pub
Normal file
|
@ -0,0 +1 @@
|
|||
2l6LxDMuuo+vr3aAraMbaVrCMHbWNNIujpwjDD/UPWA=
|
BIN
secrets/wireguard/elisabeth/psks/elisabeth+patricknix.age
Normal file
BIN
secrets/wireguard/elisabeth/psks/elisabeth+patricknix.age
Normal file
Binary file not shown.
Loading…
Reference in a new issue