44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ pkgs, config, lib, ... }:
|
|
{
|
|
|
|
imports = [
|
|
./base.nix
|
|
];
|
|
|
|
users.users.kiosk = {
|
|
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;
|
|
extraGroups = [ "wheel" "audio" "pulse" "pipewire" ];
|
|
};
|
|
users.groups.kiosk.gid = 989 ;
|
|
services.xserver = {
|
|
displayManager.gdm.enable = true;
|
|
displayManager.autoLogin = {
|
|
enable = true;
|
|
user = lib.mkForce "kiosk";
|
|
};
|
|
displayManager.defaultSession = "gnome";
|
|
desktopManager.gnome.enable = true;
|
|
# xrandrHeads = [ "HDMI1" "HDMI2" ];
|
|
# prevent screen from turning off, disable dpms
|
|
};
|
|
|
|
services.dbus.packages = with pkgs; [ gnome2.GConf gnome3.gnome-settings-daemon ];
|
|
|
|
services.pipewire.systemWide = lib.mkForce false;
|
|
environment.etc."pipewire/pipewire.conf.d/pulse-server.conf".text = ''
|
|
pulse.properties = {
|
|
server.address = [ "unix:native" "tcp:4713" ]
|
|
}
|
|
'';
|
|
}
|