2018-01-29 13:45:26 +00:00
|
|
|
{ pkgs, lib, ... }:
|
2017-05-12 09:29:46 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
./base.nix
|
|
|
|
];
|
2018-01-29 13:45:26 +00:00
|
|
|
users.users.makefu.packages = [ pkgs.chromium ];
|
2017-05-12 09:29:46 +00:00
|
|
|
services.xserver = {
|
|
|
|
layout = lib.mkForce "de";
|
2018-01-29 13:45:26 +00:00
|
|
|
xkbVariant = lib.mkForce "";
|
2017-05-12 09:29:46 +00:00
|
|
|
|
|
|
|
windowManager = lib.mkForce {
|
|
|
|
awesome.enable = false;
|
|
|
|
default = "none";
|
|
|
|
};
|
|
|
|
desktopManager.xfce.enable = true;
|
|
|
|
|
|
|
|
# xrandrHeads = [ "HDMI1" "HDMI2" ];
|
|
|
|
# prevent screen from turning off, disable dpms
|
|
|
|
displayManager.sessionCommands = ''
|
2018-01-29 13:45:26 +00:00
|
|
|
xset -display :0 s off -dpms
|
2017-05-12 09:29:46 +00:00
|
|
|
xrandr --output HDMI2 --right-of HDMI1
|
|
|
|
'';
|
|
|
|
};
|
2018-10-21 21:22:21 +00:00
|
|
|
|
|
|
|
systemd.services.xset-off = {
|
|
|
|
after = [ "display-manager.service" ];
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
serviceConfig = {
|
|
|
|
ExecStart = "${pkgs.xlibs.xset}/bin/xset -display :0 s off -dpms";
|
|
|
|
RemainAfterExit = "yes";
|
|
|
|
TimeoutSec = "5";
|
|
|
|
Restart = "on-failure";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-05-12 09:29:46 +00:00
|
|
|
}
|