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,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
inherit (lib) getExe mkForce;
|
||||||
inherit (config.vars) mainUser;
|
inherit (config.vars) mainUser;
|
||||||
|
|
||||||
inherit (lib) getExe;
|
# FIXME: switch to wayland once plasma 6.1.1 releases
|
||||||
|
defaultSession = "plasmax11";
|
||||||
|
|
||||||
switch-session = pkgs.writeShellApplication {
|
switch-session = pkgs.writeShellApplication {
|
||||||
name = "switch-session";
|
name = "switch-session";
|
||||||
|
@ -27,19 +29,14 @@
|
||||||
sudo ${pkgs.systemd}/bin/systemctl start to-gaming-mode.service
|
sudo ${pkgs.systemd}/bin/systemctl start to-gaming-mode.service
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
# Auto-login to plasma
|
|
||||||
services = {
|
services = {
|
||||||
xserver.desktopManager.plasma5.enable = true;
|
xserver.enable = true;
|
||||||
|
desktopManager.plasma6.enable = true;
|
||||||
|
|
||||||
displayManager = {
|
displayManager = {
|
||||||
sddm = {
|
sddm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoLogin.relogin = true;
|
autoLogin.relogin = true;
|
||||||
|
|
||||||
wayland = {
|
|
||||||
enable = true;
|
|
||||||
compositor = "kwin";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -51,12 +48,12 @@ in {
|
||||||
path = [switch-session];
|
path = [switch-session];
|
||||||
|
|
||||||
script = ''
|
script = ''
|
||||||
switch-session "plasma"
|
switch-session "${defaultSession}"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services."to-gaming-mode" = {
|
systemd.services."to-gaming-mode" = {
|
||||||
wantedBy = lib.mkForce [];
|
wantedBy = mkForce [];
|
||||||
|
|
||||||
path = [switch-session];
|
path = [switch-session];
|
||||||
|
|
||||||
|
@ -64,7 +61,7 @@ in {
|
||||||
switch-session "gamescope-wayland"
|
switch-session "gamescope-wayland"
|
||||||
systemctl restart display-manager
|
systemctl restart display-manager
|
||||||
sleep 10
|
sleep 10
|
||||||
switch-session "plasma"
|
switch-session "${defaultSession}"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue