Initial commit
This commit is contained in:
20
machines/pinix/kiosk.nix
Normal file
20
machines/pinix/kiosk.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
kiosk-command = pkgs.writeShellScriptBin "kiosk" ''
|
||||
# Disable screen blanking and standby
|
||||
${pkgs.xorg.xset}/bin/xset s noblank
|
||||
${pkgs.xorg.xset}/bin/xset s off
|
||||
${pkgs.xorg.xset}/bin/xset -dpms
|
||||
|
||||
# Hide mouse
|
||||
${pkgs.unclutter}/bin/unclutter -idle 0.5 -root &
|
||||
|
||||
${pkgs.chromium}/bin/chromium-browser --noerrdialogs --disable-infobars --kiosk https://example.com/dashboard
|
||||
'';
|
||||
in {
|
||||
environment.systemPackages = [kiosk-command];
|
||||
}
|
||||
Reference in New Issue
Block a user