From 75e7ee70e3c059116ffba5e7ff8af36620134db3 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Mon, 13 May 2024 09:43:33 +0800 Subject: [PATCH] feat(koumakyou): add plasma session --- spec/koumakyou/default.nix | 8 ++++++++ spec/koumakyou/jovian.nix | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/spec/koumakyou/default.nix b/spec/koumakyou/default.nix index f9177341..68dc3c30 100644 --- a/spec/koumakyou/default.nix +++ b/spec/koumakyou/default.nix @@ -38,12 +38,20 @@ specialisation.desktop.configuration = { programs.regreet.enable = lib.mkForce true; 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 cfg = config.programs.regreet; 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 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; diff --git a/spec/koumakyou/jovian.nix b/spec/koumakyou/jovian.nix index 1906e734..a4b705e0 100644 --- a/spec/koumakyou/jovian.nix +++ b/spec/koumakyou/jovian.nix @@ -11,7 +11,7 @@ steam = { enable = true; autoStart = true; - desktopSession = "sway"; + desktopSession = "plasma"; user = "app"; }; }; @@ -21,6 +21,7 @@ ]; programs.regreet.enable = false; + home.plasma.enable = true; } // { #users.users.decky.uid = 514; #users.groups.decky.gid = 514;