2023-07-05 15:27:34 +02:00
|
|
|
{ pkgs, config, lib, ... }:
|
2017-05-12 11:29:46 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
./base.nix
|
|
|
|
];
|
2023-07-05 15:27:34 +02:00
|
|
|
|
2022-06-06 21:16:30 +02:00
|
|
|
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
|
|
|
|
];
|
2022-06-06 21:16:30 +02:00
|
|
|
group = "kiosk";
|
|
|
|
isNormalUser = true;
|
|
|
|
uid = 1003;
|
2023-04-29 21:11:06 +02:00
|
|
|
extraGroups = [ "wheel" "audio" "pulse" "pipewire" ];
|
2018-11-05 13:51:54 +01:00
|
|
|
};
|
2022-06-06 21:16:30 +02:00
|
|
|
users.groups.kiosk.gid = 989 ;
|
2017-05-12 11:29:46 +02:00
|
|
|
services.xserver = {
|
2021-03-12 20:27:16 +01:00
|
|
|
displayManager.gdm.enable = true;
|
|
|
|
displayManager.autoLogin = {
|
2020-04-23 10:31:29 +02:00
|
|
|
enable = true;
|
2022-06-06 21:16:30 +02:00
|
|
|
user = lib.mkForce "kiosk";
|
2020-04-23 10:31:29 +02:00
|
|
|
};
|
2021-03-12 20:27:16 +01:00
|
|
|
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
|
|
|
|
};
|
2018-10-21 23:22:21 +02:00
|
|
|
|
2021-03-12 20:27:16 +01:00
|
|
|
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;
|
2023-06-30 09:09:04 +02:00
|
|
|
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
|
|
|
}
|