diff options
author | makefu <github@syntax-fehler.de> | 2018-11-05 13:51:54 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-11-05 13:51:54 +0100 |
commit | 7f52e698476f3d782caa4134a6166c68a9abc56e (patch) | |
tree | b8a53a3e00a6858aeafa1e1297dcdf296f5ef940 /makefu | |
parent | 2487cbc8829b9c81545d1627d4a03b8fed12de01 (diff) |
ma wbob-kiosk: trying to get xset working ...
Diffstat (limited to 'makefu')
-rw-r--r-- | makefu/2configs/gui/wbob-kiosk.nix | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/makefu/2configs/gui/wbob-kiosk.nix b/makefu/2configs/gui/wbob-kiosk.nix index b0479d0d7..6da1a37e7 100644 --- a/makefu/2configs/gui/wbob-kiosk.nix +++ b/makefu/2configs/gui/wbob-kiosk.nix @@ -4,23 +4,26 @@ imports = [ ./base.nix ]; - users.users.makefu.packages = [ pkgs.chromium ]; + users.users.makefu = { + packages = [ pkgs.chromium ]; + extraGroups = [ "audio" "pulse" ]; + }; services.xserver = { - layout = lib.mkForce "de"; - xkbVariant = lib.mkForce ""; windowManager = lib.mkForce { awesome.enable = false; default = "none"; }; - desktopManager.xfce.enable = true; + desktopManager.xfce = { + extraSessionCommands = '' + ${pkgs.xlibs.xset}/bin/xset -display :0 s off -dpms + ${pkgs.xlibs.xrandr}/bin/xrandr --output HDMI2 --right-of HDMI1 + ''; + enable = true; + }; # xrandrHeads = [ "HDMI1" "HDMI2" ]; # prevent screen from turning off, disable dpms - displayManager.sessionCommands = '' - xset -display :0 s off -dpms - xrandr --output HDMI2 --right-of HDMI1 - ''; }; systemd.services.xset-off = { @@ -29,7 +32,8 @@ serviceConfig = { ExecStart = "${pkgs.xlibs.xset}/bin/xset -display :0 s off -dpms"; RemainAfterExit = "yes"; - TimeoutSec = "5"; + TimeoutSec = "5s"; + RestartSec="5s"; Restart = "on-failure"; }; }; |