ma wbob-kiosk: trying to get xset working ...
This commit is contained in:
parent
2487cbc882
commit
7f52e69847
@ -4,23 +4,26 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./base.nix
|
./base.nix
|
||||||
];
|
];
|
||||||
users.users.makefu.packages = [ pkgs.chromium ];
|
users.users.makefu = {
|
||||||
|
packages = [ pkgs.chromium ];
|
||||||
|
extraGroups = [ "audio" "pulse" ];
|
||||||
|
};
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
layout = lib.mkForce "de";
|
|
||||||
xkbVariant = lib.mkForce "";
|
|
||||||
|
|
||||||
windowManager = lib.mkForce {
|
windowManager = lib.mkForce {
|
||||||
awesome.enable = false;
|
awesome.enable = false;
|
||||||
default = "none";
|
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" ];
|
# xrandrHeads = [ "HDMI1" "HDMI2" ];
|
||||||
# prevent screen from turning off, disable dpms
|
# 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 = {
|
systemd.services.xset-off = {
|
||||||
@ -29,7 +32,8 @@
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.xlibs.xset}/bin/xset -display :0 s off -dpms";
|
ExecStart = "${pkgs.xlibs.xset}/bin/xset -display :0 s off -dpms";
|
||||||
RemainAfterExit = "yes";
|
RemainAfterExit = "yes";
|
||||||
TimeoutSec = "5";
|
TimeoutSec = "5s";
|
||||||
|
RestartSec="5s";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user