fix(bbsteamie): switch to x11 session
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
f4473b23b4
commit
128bad02f3
1 changed files with 8 additions and 11 deletions
|
@ -4,9 +4,11 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) getExe mkForce;
|
||||
inherit (config.vars) mainUser;
|
||||
|
||||
inherit (lib) getExe;
|
||||
# FIXME: switch to wayland once plasma 6.1.1 releases
|
||||
defaultSession = "plasmax11";
|
||||
|
||||
switch-session = pkgs.writeShellApplication {
|
||||
name = "switch-session";
|
||||
|
@ -27,19 +29,14 @@
|
|||
sudo ${pkgs.systemd}/bin/systemctl start to-gaming-mode.service
|
||||
'';
|
||||
in {
|
||||
# Auto-login to plasma
|
||||
services = {
|
||||
xserver.desktopManager.plasma5.enable = true;
|
||||
xserver.enable = true;
|
||||
desktopManager.plasma6.enable = true;
|
||||
|
||||
displayManager = {
|
||||
sddm = {
|
||||
enable = true;
|
||||
autoLogin.relogin = true;
|
||||
|
||||
wayland = {
|
||||
enable = true;
|
||||
compositor = "kwin";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -51,12 +48,12 @@ in {
|
|||
path = [switch-session];
|
||||
|
||||
script = ''
|
||||
switch-session "plasma"
|
||||
switch-session "${defaultSession}"
|
||||
'';
|
||||
};
|
||||
|
||||
systemd.services."to-gaming-mode" = {
|
||||
wantedBy = lib.mkForce [];
|
||||
wantedBy = mkForce [];
|
||||
|
||||
path = [switch-session];
|
||||
|
||||
|
@ -64,7 +61,7 @@ in {
|
|||
switch-session "gamescope-wayland"
|
||||
systemctl restart display-manager
|
||||
sleep 10
|
||||
switch-session "plasma"
|
||||
switch-session "${defaultSession}"
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue