small improvments

feature/hass
Ingolf Wagner 2020-03-21 16:36:49 +08:00
parent e7ffcc1435
commit ec4ccbe5ef
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
3 changed files with 5 additions and 3 deletions

View File

@ -22,7 +22,7 @@
./tinc.nix
./transmission.nix
./weechat.nix
./wetten.nix
#./wetten.nix
./nextcloud.nix
./mattermost.nix
];

View File

@ -94,7 +94,7 @@ in {
script-torrent-done-filename =
(pkgs.writers.writeBash "torrent-finished" ''
JSON_STRING=$( ${pkgs.jq}/bin/jq -n --arg torrent_name "$TR_TORRENT_NAME" \
'{text: ":tada: \($torrent_name)", channel: "torrent"}' )
'{text: ":tada: finished : \($torrent_name)", channel: "torrent"}' )
${pkgs.curl}/bin/curl \
--include \
--request POST \
@ -121,12 +121,12 @@ in {
after = [ "openvpn-nordvpn.service" ];
serviceConfig.Restart = "always";
};
services.openvpn.servers.nordvpn.updateResolvConf = true;
services.openvpn.servers.nordvpn.config = ''
client
dev tun
proto udp
remote 152.89.163.99 1194
resolv-retry infinite
dhcp-option DNS 8.8.8.8
remote-random
nobind
@ -146,6 +146,7 @@ in {
auth-user-pass ${toString <secrets/transmission/nordvpn.txt>}
verb 3
pull
resolv-retry infinite
fast-io
cipher AES-256-CBC
auth SHA512

View File

@ -111,6 +111,7 @@ in {
sputnik = {
realAddress = [
# "195.201.134.247:443"
"static.247.134.201.195.clients.your-server.de"
"static.247.134.201.195.clients.your-server.de:443"
];
tincIp = "10.23.42.122";