fix syncthing and jellyfin
This commit is contained in:
parent
2f94ee46c8
commit
5297e7daab
4 changed files with 13 additions and 36 deletions
|
@ -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
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -9,4 +9,6 @@
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 1883 ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openDefaultPorts = false;
|
openDefaultPorts = false;
|
||||||
dataDir = "/media/syncthing";
|
dataDir = "/media/syncthing/config";
|
||||||
configDir = "/media/syncthing";
|
configDir = "/media/syncthing/config";
|
||||||
overrideDevices = true;
|
overrideDevices = true;
|
||||||
overrideFolders = true;
|
overrideFolders = true;
|
||||||
cert = toString config.sops.secrets.syncthing_cert.path;
|
cert = toString config.sops.secrets.syncthing_cert.path;
|
||||||
|
|
|
@ -12,6 +12,7 @@ let
|
||||||
"https://${user}:${password}@nextcloud.ingolf-wagner.de"
|
"https://${user}:${password}@nextcloud.ingolf-wagner.de"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -58,6 +59,14 @@ in
|
||||||
darktable
|
darktable
|
||||||
|
|
||||||
#blender
|
#blender
|
||||||
|
mosquitto
|
||||||
|
(pkgs.writers.writeBashBin "mqtt-tail" ''
|
||||||
|
${pkgs.mosquitto}/bin/mosquitto_sub -v \
|
||||||
|
-h pepe.private \
|
||||||
|
-u homeassistant \
|
||||||
|
-P password \
|
||||||
|
-t "#"
|
||||||
|
'')
|
||||||
|
|
||||||
# rust development environment
|
# rust development environment
|
||||||
rustup
|
rustup
|
||||||
|
|
Loading…
Reference in a new issue