1
0

Compare commits

..

No commits in common. "e9d4f37d164ac114fd668c23fa988b17e06f5320" and "eaccce56eb4d99794d47d8d0fd3f1d796ddf4c88" have entirely different histories.

5 changed files with 42 additions and 15 deletions

View File

@ -62,11 +62,6 @@ in {
}; };
}; };
clerie.nixfiles.system-auto-upgrade = {
allowReboot = true;
autoUpgrade = true;
};
clerie.monitoring = { clerie.monitoring = {
enable = true; enable = true;
id = "202"; id = "202";

View File

@ -26,11 +26,6 @@
networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.firewall.allowedTCPPorts = [ 80 443 ];
clerie.nixfiles.system-auto-upgrade = {
allowReboot = true;
autoUpgrade = true;
};
clerie.monitoring = { clerie.monitoring = {
enable = true; enable = true;
id = "209"; id = "209";

View File

@ -82,10 +82,17 @@ in {
}; };
users.groups.data-mixcloud = {}; users.groups.data-mixcloud = {};
systemd.tmpfiles.rules = [ systemd.services = {
"d /data/mixcloud - data-mixcloud data-mixcloud - -" "youtube-dl-prepare" = {
]; serviceConfig = {
Type = "oneshot";
systemd.services = (mapAttrs' generateYoutubedlMixcloudUnits mixcloudSources); RemainAfterExit = "true";
};
script = ''
mkdir -p /data/mixcloud
chown -R data-mixcloud:data-mixcloud /data/mixcloud
'';
};
} // (mapAttrs' generateYoutubedlMixcloudUnits mixcloudSources);
systemd.timers = (mapAttrs' generateYoutubedlMixcloudTimers mixcloudSources); systemd.timers = (mapAttrs' generateYoutubedlMixcloudTimers mixcloudSources);
} }

View File

@ -26,6 +26,7 @@
./tap.nix ./tap.nix
./uptimestatus.nix ./uptimestatus.nix
./wetter.nix ./wetter.nix
./znc.nix
]; ];
boot.loader.grub.enable = true; boot.loader.grub.enable = true;

29
hosts/web-2/znc.nix Normal file
View File

@ -0,0 +1,29 @@
{ ... }:
{
services.znc = {
enable = true;
mutable = true;
dataDir = "/var/lib/znc";
configFile = "/var/lib/znc/configs/znc.conf";
};
services.nginx.virtualHosts = {
"znc.clerie.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:1313";
};
};
};
clerie.nginx-port-forward = {
enable = true;
tcpPorts."6697" = {
host = "127.0.0.1";
port = 1311;
certName = "znc.clerie.de";
};
};
}