dotfiles/nixos/common-services.nix
2021-01-16 21:38:51 +00:00

66 lines
1.3 KiB
Nix

{ config, pkgs, ... }:
{
systemd.services.promtail = {
description = "Promtail service for Loki";
after = [ "zerotierone.service" "network.target" ];
requires = [ "zerotierone.service" "network.target" ];
wants = [ "zerotierone.service" "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = ''
${pkgs.grafana-loki}/bin/promtail --config.file ${./promtail.yaml}
'';
};
};
services = {
udev.packages = [ pkgs.android-udev-rules ];
ratbagd.enable = true;
fwupd = {
enable = true;
package = pkgs.fwupd;
};
tlp = {
enable = true;
settings = {
"DISK_IOSCHED" = "mq-deadline";
};
};
upower.enable = true;
fstrim.enable = true;
clipmenu.enable = true;
lorri.enable = true;
keybase.enable=true;
avahi = {
enable = true;
nssmdns = true;
};
geoclue2.enable = true;
xserver = {
enable = true;
layout = "pl";
xkbOptions = "caps:ctrl_modifier";
libinput = {
enable = true;
naturalScrolling = false;
clickMethod = "clickfinger";
disableWhileTyping = true;
};
useGlamor = true;
deviceSection = ''
Option "TearFree" "true"
Option "AccelMethod" "sna"
'';
};
};
}