dotfiles/nixos/common-services.nix
Cyryl Płotnicki 5338a3965b add fuse
2020-03-20 13:09:39 +00:00

63 lines
1.2 KiB
Nix

{ config, pkgs, ... }:
{
docker-containers.meditate = {
image = "meditate";
ports = [ "80:80" ];
};
services = {
udev.packages = [ pkgs.android-udev-rules ];
fwupd = {
enable = true;
package = pkgs.fwupd;
};
tlp = {
enable = true;
extraConfig = ''
DISK_IOSCHED="mq-deadline"
'';
};
upower.enable = true;
fstrim.enable = true;
clipmenu.enable = true;
lorri.enable = true;
printing = {
enable = true;
drivers = [ pkgs.epson-escpr pkgs.samsung-unified-linux-driver pkgs.splix ];
};
avahi = {
enable = true;
nssmdns = true;
};
restic.backups.home = {
passwordFile = "/etc/nixos/secrets/restic-password";
paths = [ "/home" ];
repository = "rest:http://brix.local:8000/";
timerConfig = { OnCalendar = "hourly"; };
};
xserver = {
enable = true;
layout = "pl";
libinput = {
enable = true;
naturalScrolling = false;
clickMethod = "clickfinger";
};
useGlamor = true;
deviceSection = ''
Option "TearFree" "true"
Option "AccelMethod" "sna"
'';
};
};
}