2020-08-18 12:01:44 +04:00
|
|
|
|
2020-02-17 17:00:59 +04:00
|
|
|
{ config, lib, pkgs, ... }: {
|
|
|
|
|
|
|
|
services.acpid.enable = true;
|
|
|
|
|
|
|
|
services.apcupsd = { enable = config.device == "AMD-Workstation"; };
|
|
|
|
|
|
|
|
services.earlyoom = {
|
|
|
|
enable = config.devices.${config.device}.ram < 16;
|
|
|
|
freeMemThreshold = 5;
|
|
|
|
freeSwapThreshold = 100;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.printing = {
|
|
|
|
enable = true;
|
|
|
|
drivers = [ pkgs.gutenprint ];
|
|
|
|
};
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
|
|
|
|
services.tor = {
|
|
|
|
enable = true;
|
|
|
|
client.enable = true;
|
|
|
|
torsocks.enable = true;
|
2021-01-13 15:24:22 +04:00
|
|
|
settings.SOCKSPort = [ 9050 ];
|
2020-02-17 17:00:59 +04:00
|
|
|
};
|
|
|
|
|
2020-12-25 00:19:46 +04:00
|
|
|
services.privoxy = {
|
|
|
|
enable = true;
|
|
|
|
enableTor = true;
|
|
|
|
};
|
|
|
|
|
2020-02-17 17:00:59 +04:00
|
|
|
programs.mosh.enable = true;
|
|
|
|
|
|
|
|
services.fwupd.enable = true;
|
|
|
|
|
|
|
|
services.avahi.enable = true;
|
|
|
|
|
|
|
|
systemd.services.systemd-udev-settle.enable = false;
|
|
|
|
|
|
|
|
services.nix-serve.enable = config.device == "AMD-Workstation";
|
|
|
|
|
2020-02-26 16:43:15 +04:00
|
|
|
services.pcscd.enable = true;
|
2020-04-27 22:58:07 +04:00
|
|
|
|
|
|
|
services.keybase.enable = true;
|
2020-02-26 16:43:15 +04:00
|
|
|
|
2020-02-17 17:00:59 +04:00
|
|
|
services.upower.enable = true;
|
|
|
|
virtualisation.docker.enable = config.deviceSpecific.isHost;
|
|
|
|
virtualisation.libvirtd = {
|
|
|
|
enable = config.deviceSpecific.isHost;
|
|
|
|
};
|
2020-07-16 17:46:49 +04:00
|
|
|
|
|
|
|
networking.firewall.trustedInterfaces = [ "eth0" ];
|
|
|
|
|
2020-07-31 22:00:51 +04:00
|
|
|
services.nginx.enable = config.device == "AMD-Workstation";
|
|
|
|
|
2020-08-18 12:01:44 +04:00
|
|
|
services.vsftpd = {
|
|
|
|
enable = config.device == "AMD-Workstation";
|
|
|
|
anonymousUser = true;
|
|
|
|
allowWriteableChroot = true;
|
|
|
|
anonymousMkdirEnable = true;
|
|
|
|
anonymousUploadEnable = true;
|
|
|
|
writeEnable = true;
|
|
|
|
};
|
|
|
|
|
2020-08-07 17:10:48 +04:00
|
|
|
services.jitsi-meet = {
|
2020-08-09 23:06:59 +04:00
|
|
|
enable = config.device == "AMD-Workstation";
|
2020-08-07 17:10:48 +04:00
|
|
|
hostName = "meet.balsoft.ru";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx.virtualHosts.${config.services.jitsi-meet.hostName} = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
2020-10-18 14:28:27 +04:00
|
|
|
basicAuthFile = "/var/lib/jitsi-auth";
|
2020-08-07 17:10:48 +04:00
|
|
|
};
|
2020-10-02 01:48:27 +04:00
|
|
|
|
|
|
|
virtualisation.spiceUSBRedirection.enable = true;
|
2020-02-17 17:00:59 +04:00
|
|
|
}
|