nixos-config/modules/services.nix

37 lines
735 B
Nix
Raw Normal View History

2020-08-18 12:01:44 +04:00
2021-04-01 14:55:14 +04:00
{ config, lib, pkgs, inputs, ... }: {
2020-02-17 17:00:59 +04:00
services.acpid.enable = true;
services.earlyoom = {
2021-01-21 22:13:53 +04:00
enable = config.deviceSpecific.devInfo.ram < 16;
2020-02-17 17:00:59 +04:00
freeMemThreshold = 5;
freeSwapThreshold = 100;
};
services.printing = {
enable = true;
drivers = [ pkgs.gutenprint ];
};
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;
2020-02-26 16:43:15 +04:00
services.pcscd.enable = true;
2020-04-27 22:58:07 +04:00
2021-04-05 17:14:36 +04:00
services.blueman.enable = true;
2021-04-01 14:55:14 +04:00
services.upower = {
enable = true;
package = pkgs.upower.overrideAttrs (oa: {
src = inputs.upower;
nativeBuildInputs = oa.nativeBuildInputs ++ [ pkgs.autoreconfHook pkgs.gtk_doc ];
});
};
2020-02-17 17:00:59 +04:00
}