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 = {
enable = true;
id = "202";

View File

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

View File

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

View File

@ -26,6 +26,7 @@
./tap.nix
./uptimestatus.nix
./wetter.nix
./znc.nix
];
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";
};
};
}