stockholm/makefu/2configs/gui/wbob-kiosk.nix

41 lines
972 B
Nix
Raw Normal View History

2018-01-29 13:45:26 +00:00
{ pkgs, lib, ... }:
2017-05-12 09:29:46 +00:00
{
imports = [
./base.nix
];
users.users.makefu = {
packages = [ pkgs.chromium ];
extraGroups = [ "audio" "pulse" ];
};
2017-05-12 09:29:46 +00:00
services.xserver = {
windowManager = lib.mkForce {
awesome.enable = false;
};
desktopManager.xfce = {
enable = true;
};
displayManager.defaultSession = "xfce";
displayManager.sessionCommands = ''
${pkgs.xlibs.xset}/bin/xset -display :0 s off -dpms
${pkgs.xlibs.xrandr}/bin/xrandr --output HDMI2 --right-of HDMI1
'';
2017-05-12 09:29:46 +00:00
# xrandrHeads = [ "HDMI1" "HDMI2" ];
# prevent screen from turning off, disable dpms
};
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 = "5s";
RestartSec="5s";
Restart = "on-failure";
};
};
2017-05-12 09:29:46 +00:00
}