nixos-configs/devices/bbsteamie/modules/desktop.nix
matt1432 1bb3f8e5e1
All checks were successful
Discord / discord commits (push) Has been skipped
fix(bbsteamie): add timeout to decky
2024-06-30 00:35:53 -04:00

47 lines
892 B
Nix

{config, ...}: let
inherit (config.vars) mainUser;
in {
# Auto-login to plasma
services = {
desktopManager.plasma6.enable = true;
displayManager = {
sddm = {
enable = true;
wayland.enable = true;
autoLogin.relogin = true;
};
autoLogin = {
enable = true;
user = mainUser;
};
defaultSession = "plasma";
};
};
programs = {
xwayland.enable = true;
kdeconnect.enable = true;
};
# Enable flatpak support
services.flatpak.enable = true;
services.packagekit.enable = true;
jovian.steam = {
enable = true;
user = mainUser;
desktopSession = config.services.displayManager.defaultSession;
};
jovian.decky-loader = {
enable = true;
user = mainUser;
};
# Takes way too long to shutdown
systemd.services."decky-loader".serviceConfig.TimeoutStopSec = "5";
}