dotfiles/nixos/common-services.nix

54 lines
1 KiB
Nix
Raw Normal View History

2019-07-21 16:47:36 +01:00
{ config, pkgs, ... }:
{
services = {
fwupd.enable = true;
tlp.enable = true;
fstrim.enable = true;
clipmenu.enable = true;
physlock = {
enable = true;
allowAnyUser = 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 = "sftp:fetcher@brix:/mnt/data/backup-targets";
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 = ''
Option "TearFree" "true"
Option "AccelMethod" "sna"
'';
2019-07-21 16:47:36 +01:00
displayManager.sddm = {
enable = true;
enableHidpi = true;
};
};
};
}