fix syncthing and jellyfin

This commit is contained in:
Ingolf Wagner 2023-01-31 09:50:46 +01:00
parent 2f94ee46c8
commit 5297e7daab
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
4 changed files with 13 additions and 36 deletions

View file

@ -1,34 +0,0 @@
{ config, pkgs, lib, retiolum, ... }:
{
# nix-shell -p tinc_pre --run "tinc --config . generate-keys 4096"
module.cluster.services.tinc."retiolum" = {
networkSubnet = "10.243.0.0/16";
port = 720;
extraConfig = ''
LocalDiscovery = yes
AutoConnect = yes
'';
privateEd25519KeyFile = toString config.sops.secrets.tinc_retiolum_ed25519_key.path;
privateRsaKeyFile = toString config.sops.secrets.tinc_retiolum_rsa_key.path;
hosts = {
pepe = {
tincIp = "10.243.23.1";
publicKey = lib.fileContents ../../../assets/tinc/retiolum/host_file;
};
sterni = {
tincIp = "10.243.23.3";
publicKey = lib.fileContents ../../../assets/tinc/retiolum/host_file;
};
};
};
networking.extraHosts = builtins.readFile (toString "${retiolum}/etc.hosts");
systemd.services."tinc.retiolum" = {
preStart = ''
cp -R ${retiolum}/hosts /etc/tinc/retiolum/ || true
'';
};
}

View file

@ -9,4 +9,6 @@
}];
};
networking.firewall.allowedTCPPorts = [ 1883 ];
}

View file

@ -11,8 +11,8 @@
services.syncthing = {
enable = true;
openDefaultPorts = false;
dataDir = "/media/syncthing";
configDir = "/media/syncthing";
dataDir = "/media/syncthing/config";
configDir = "/media/syncthing/config";
overrideDevices = true;
overrideFolders = true;
cert = toString config.sops.secrets.syncthing_cert.path;

View file

@ -12,6 +12,7 @@ let
"https://${user}:${password}@nextcloud.ingolf-wagner.de"
'';
in
{
environment.systemPackages = with pkgs; [
@ -58,6 +59,14 @@ in
darktable
#blender
mosquitto
(pkgs.writers.writeBashBin "mqtt-tail" ''
${pkgs.mosquitto}/bin/mosquitto_sub -v \
-h pepe.private \
-u homeassistant \
-P password \
-t "#"
'')
# rust development environment
rustup