nixos-config/modules/services.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

2020-02-17 17:00:59 +04:00
{ config, lib, pkgs, ... }: {
services.acpid.enable = true;
programs.ssh.startAgent = 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;
client.privoxy.enable = true;
torsocks.enable = true;
client.socksListenAddressFaster = "127.0.0.1:9063";
};
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";
services.upower.enable = true;
virtualisation.docker.enable = config.deviceSpecific.isHost;
virtualisation.libvirtd = {
enable = config.deviceSpecific.isHost;
};
2020-02-25 16:44:34 +04:00
virtualisation.anbox.enable = true;
2020-02-25 17:19:29 +04:00
virtualisation.lxc.enable = lib.mkForce false;
2020-02-17 17:00:59 +04:00
}