2019-07-21 16:47:36 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2020-02-02 10:03:09 +00:00
|
|
|
docker-containers.meditate = {
|
|
|
|
image = "meditate";
|
|
|
|
ports = [ "80:80" ];
|
|
|
|
};
|
|
|
|
|
2019-07-21 16:47:36 +01:00
|
|
|
services = {
|
2020-03-20 13:09:39 +00:00
|
|
|
udev.packages = [ pkgs.android-udev-rules ];
|
2020-05-09 16:26:35 +01:00
|
|
|
ratbagd.enable = true;
|
2020-03-20 13:09:39 +00:00
|
|
|
|
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;
|
2020-01-10 22:53:28 +00:00
|
|
|
lorri.enable = true;
|
2019-07-21 16:47:36 +01:00
|
|
|
|
|
|
|
avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns = true;
|
|
|
|
};
|
|
|
|
|
2020-05-24 20:13:17 +01:00
|
|
|
restic.backups.home-to-brix = {
|
|
|
|
passwordFile = "/etc/nixos/secrets/restic-password-brix";
|
2019-07-21 16:47:36 +01:00
|
|
|
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"; };
|
2020-05-24 20:13:17 +01:00
|
|
|
extraBackupArgs = [ "--exclude='.cache'" "--exclude='.rustup'" ];
|
2020-05-29 17:47:23 +01:00
|
|
|
pruneOpts = [ "--keep-hourly 25" "--keep-daily 8" "--keep-weekly 5" "--keep-monthly 13" "--keep-yearly 16" ];
|
2019-07-21 16:47:36 +01:00
|
|
|
};
|
2020-05-24 20:13:17 +01:00
|
|
|
|
|
|
|
restic.backups.home-to-b2 = {
|
|
|
|
passwordFile = "/etc/nixos/secrets/restic-password-b2";
|
|
|
|
paths = [ "/home" ];
|
|
|
|
repository = "b2:cyplo-restic-foureighty:/";
|
|
|
|
timerConfig = { OnCalendar = "hourly"; };
|
|
|
|
extraBackupArgs = [ "--exclude='.cache'" "--exclude='.rustup'" ];
|
|
|
|
pruneOpts = [ "--keep-daily 8" "--keep-weekly 5" "--keep-monthly 13" "--keep-yearly 16" ];
|
|
|
|
s3CredentialsFile = "/etc/nixos/secrets/b2";
|
|
|
|
};
|
|
|
|
|
2020-04-18 11:59:42 +01:00
|
|
|
geoclue2.enable = true;
|
2019-07-21 16:47:36 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|