feat(koumakyou): add plasma session

This commit is contained in:
514fpv 2024-05-13 09:43:33 +08:00
parent d2063ee7cf
commit 75e7ee70e3
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
2 changed files with 10 additions and 1 deletions

View file

@ -38,12 +38,20 @@
specialisation.desktop.configuration = { specialisation.desktop.configuration = {
programs.regreet.enable = lib.mkForce true; programs.regreet.enable = lib.mkForce true;
jovian.steam.autoStart = lib.mkForce false; jovian.steam.autoStart = lib.mkForce false;
jovian.steam.desktopSession = lib.mkForce "sway";
home.plasma.enable = lib.mkForce false;
services.greetd.settings.default_session.command = let services.greetd.settings.default_session.command = let
cfg = config.programs.regreet; cfg = config.programs.regreet;
in "${pkgs.dbus}/bin/dbus-run-session ${lib.getExe pkgs.cage} ${lib.escapeShellArgs cfg.cageArgs} -- ${pkgs.writeShellScript "cageResolution" '' in "${pkgs.dbus}/bin/dbus-run-session ${lib.getExe pkgs.cage} ${lib.escapeShellArgs cfg.cageArgs} -- ${pkgs.writeShellScript "cageResolution" ''
${lib.getExe pkgs.wlr-randr} --output eDP-1 --scale 2 ${lib.getExe pkgs.wlr-randr} --output eDP-1 --scale 2
${lib.getExe cfg.package} ${lib.getExe cfg.package}
''}"; ''}";
environment.systemPackages = with pkgs; [
(writeShellScriptBin "sway-logout" ''
${systemd}/bin/systemctl --user unset-environment WAYLAND_DISPLAY SWAYSOCK
${sway}/bin/swaymsg exit
'')
];
}; };
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;

View file

@ -11,7 +11,7 @@
steam = { steam = {
enable = true; enable = true;
autoStart = true; autoStart = true;
desktopSession = "sway"; desktopSession = "plasma";
user = "app"; user = "app";
}; };
}; };
@ -21,6 +21,7 @@
]; ];
programs.regreet.enable = false; programs.regreet.enable = false;
home.plasma.enable = true;
} // { } // {
#users.users.decky.uid = 514; #users.users.decky.uid = 514;
#users.groups.decky.gid = 514; #users.groups.decky.gid = 514;