2019-07-21 16:47:36 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
services = {
|
2019-11-12 21:30:45 +00:00
|
|
|
fwupd = {
|
|
|
|
enable = true;
|
2019-12-10 18:16:45 +00:00
|
|
|
package = pkgs.fwupd;
|
2019-11-12 21:30:45 +00:00
|
|
|
};
|
2019-10-12 19:38:33 +01:00
|
|
|
|
|
|
|
tlp = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
2019-11-12 21:30:45 +00:00
|
|
|
DISK_IOSCHED="mq-deadline"
|
2019-10-12 19:38:33 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2019-12-25 13:29:01 +00:00
|
|
|
upower.enable = true;
|
2019-07-21 16:47:36 +01:00
|
|
|
fstrim.enable = true;
|
|
|
|
clipmenu.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" ];
|
2019-12-22 10:50:55 +00:00
|
|
|
repository = "rest:http://brix.local:8000/";
|
2019-07-21 16:47:36 +01:00
|
|
|
timerConfig = { OnCalendar = "hourly"; };
|
|
|
|
};
|
|
|
|
|
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
layout = "pl";
|
|
|
|
libinput = {
|
|
|
|
enable = true;
|
|
|
|
naturalScrolling = false;
|
|
|
|
clickMethod = "clickfinger";
|
|
|
|
};
|
|
|
|
|
2019-08-04 20:13:54 +01:00
|
|
|
useGlamor = true;
|
|
|
|
|
|
|
|
deviceSection = ''
|
2019-11-12 21:30:45 +00:00
|
|
|
Option "TearFree" "true"
|
|
|
|
Option "AccelMethod" "sna"
|
2019-08-04 20:13:54 +01:00
|
|
|
'';
|
|
|
|
|
2019-07-21 16:47:36 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|