nixos-configs/devices/bbsteamie/modules/desktop.nix

48 lines
892 B
Nix
Raw Normal View History

{config, ...}: let
inherit (config.vars) mainUser;
in {
# Auto-login to plasma
services = {
desktopManager.plasma6.enable = true;
displayManager = {
2024-06-29 22:53:47 -04:00
sddm = {
enable = true;
2024-06-29 23:00:49 -04:00
wayland.enable = true;
autoLogin.relogin = true;
};
2024-06-29 22:53:47 -04:00
2024-06-29 23:00:49 -04:00
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;
};
2024-06-30 00:35:53 -04:00
# Takes way too long to shutdown
systemd.services."decky-loader".serviceConfig.TimeoutStopSec = "5";
}