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

57 lines
1.6 KiB
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.kiosk = {
2023-04-29 19:11:06 +00:00
packages = with pkgs;[ chromium vscode spotify tartube-yt-dlp ];
group = "kiosk";
isNormalUser = true;
uid = 1003;
2023-04-29 19:11:06 +00:00
extraGroups = [ "wheel" "audio" "pulse" "pipewire" ];
};
users.groups.kiosk.gid = 989 ;
2017-05-12 09:29:46 +00:00
services.xserver = {
windowManager = lib.mkForce { awesome.enable = false; };
displayManager.gdm.enable = true;
displayManager.autoLogin = {
enable = true;
user = lib.mkForce "kiosk";
};
displayManager.defaultSession = "gnome";
2021-12-05 13:21:19 +00:00
desktopManager.gnome.enable = true;
displayManager.sessionCommands = ''
2022-06-10 19:37:49 +00:00
${pkgs.xorg.xset}/bin/xset -display :0 s off -dpms
${pkgs.xorg.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
};
2023-04-29 19:11:06 +00:00
environment.systemPackages = [
pkgs.gnomeExtensions.appindicator pkgs.pavucontrol pkgs.jellyfin-media-player pkgs.chromium pkgs.firefox pkgs.kodi
pkgs.pavucontrol
];
services.dbus.packages = with pkgs; [ gnome2.GConf gnome3.gnome-settings-daemon ];
systemd.services.xset-off = {
after = [ "display-manager.service" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
2022-06-10 19:37:49 +00:00
ExecStart = "${pkgs.xorg.xset}/bin/xset -display :0 s off -dpms";
RemainAfterExit = "yes";
TimeoutSec = "5s";
RestartSec="5s";
Restart = "on-failure";
};
};
2023-04-29 19:11:06 +00:00
services.pipewire.systemWide = lib.mkForce false;
services.pipewire.config.pipewire-pulse = {
"pulse.properties"."server.address" = [ "unix:native" "tcp:4713" ];
};
2017-05-12 09:29:46 +00:00
}