mass reformat

This commit is contained in:
notgne2 2022-10-03 17:08:32 -07:00
parent ed1c53e94c
commit 9cb456ad60
No known key found for this signature in database
GPG key ID: 5CE0A245A2DAC84A
25 changed files with 1216 additions and 1043 deletions

View file

@ -1,6 +1,11 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.services.kiosk;
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.services.kiosk;
in {
options.services.kiosk = {
enable = mkEnableOption "Enable simple kiosk display";
@ -60,21 +65,26 @@ in {
};
};
displayManager.xserverArgs = if cfg.cursor then [ ] else [ "-nocursor" ];
displayManager.xserverArgs =
if cfg.cursor
then []
else ["-nocursor"];
displayManager.defaultSession = "kiosk+ratpoison";
desktopManager.session = [{
name = "kiosk";
start = ''
# dont blank the screen after 5min
xset dpms force on
xset -dpms
xset s noblank
xset s off
desktopManager.session = [
{
name = "kiosk";
start = ''
# dont blank the screen after 5min
xset dpms force on
xset -dpms
xset s noblank
xset s off
${cfg.session}
'';
}];
${cfg.session}
'';
}
];
};
};
}