nixos-config/2configs/gui/wbob-kiosk.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

{ pkgs, config, lib, ... }:
2017-05-12 11:29:46 +02:00
{
imports = [
./base.nix
];
users.users.kiosk = {
2023-07-13 01:58:12 +02:00
packages = with pkgs;[
chromium vscode spotify tartube-yt-dlp yt-dlp
pkgs.gnomeExtensions.appindicator
pkgs.pavucontrol
pkgs.chromium pkgs.firefox
pkgs.kodi
pkgs.guake
];
group = "kiosk";
isNormalUser = true;
uid = 1003;
2023-04-29 21:11:06 +02:00
extraGroups = [ "wheel" "audio" "pulse" "pipewire" ];
};
users.groups.kiosk.gid = 989 ;
2017-05-12 11:29:46 +02:00
services.xserver = {
displayManager.gdm.enable = true;
displayManager.autoLogin = {
enable = true;
user = lib.mkForce "kiosk";
};
displayManager.defaultSession = "gnome";
2021-12-05 14:21:19 +01:00
desktopManager.gnome.enable = true;
2017-05-12 11:29:46 +02:00
# xrandrHeads = [ "HDMI1" "HDMI2" ];
# prevent screen from turning off, disable dpms
};
services.dbus.packages = with pkgs; [ gnome2.GConf gnome3.gnome-settings-daemon ];
2023-04-29 21:11:06 +02:00
services.pipewire.systemWide = lib.mkForce false;
environment.etc."pipewire/pipewire.conf.d/pulse-server.conf".text = ''
pulse.properties = {
server.address = [ "unix:native" "tcp:4713" ]
}
'';
2017-05-12 11:29:46 +02:00
}