2023-07-15 17:01:55 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2023-07-15 18:55:50 +00:00
|
|
|
services = {
|
|
|
|
avahi = {
|
2023-07-15 17:01:55 +00:00
|
|
|
enable = true;
|
2023-07-15 18:55:50 +00:00
|
|
|
openFirewall = true;
|
2023-07-15 17:01:55 +00:00
|
|
|
};
|
2023-07-15 18:55:50 +00:00
|
|
|
printing.enable = true;
|
2023-07-15 17:01:55 +00:00
|
|
|
clamav = {
|
|
|
|
daemon.enable = true;
|
|
|
|
updater.enable = true;
|
|
|
|
};
|
|
|
|
locate = {
|
|
|
|
enable = true;
|
|
|
|
locate = pkgs.plocate;
|
|
|
|
interval = "hourly";
|
|
|
|
localuser = null;
|
|
|
|
};
|
2023-07-16 09:34:33 +00:00
|
|
|
redshift = {
|
|
|
|
enable = true;
|
|
|
|
brightness = {
|
|
|
|
# Note the string values below.
|
|
|
|
day = "1";
|
|
|
|
night = "1";
|
|
|
|
};
|
|
|
|
temperature = {
|
|
|
|
day = 5500;
|
|
|
|
night = 3700;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
geoclue2.appConfig.redshift.isAllowed = true;
|
|
|
|
automatic-timezoned.enable = true;
|
2023-07-15 17:01:55 +00:00
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
autorun = true;
|
|
|
|
windowManager.i3.enable = true;
|
|
|
|
displayManager.defaultSession = "none+i3";
|
|
|
|
layout = "fr";
|
|
|
|
xkbOptions = "eurosign:e";
|
|
|
|
};
|
2023-07-15 18:55:50 +00:00
|
|
|
openssh = {
|
|
|
|
enable = true;
|
|
|
|
settings.PermitRootLogin = "no";
|
2023-07-15 17:01:55 +00:00
|
|
|
};
|
2023-07-15 18:55:50 +00:00
|
|
|
ntp.enable = true;
|
|
|
|
tlp.enable = true;
|
|
|
|
fstrim.enable = true;
|
2023-07-15 17:01:55 +00:00
|
|
|
};
|
|
|
|
}
|