Skip to content

Commit

Permalink
nixos/plasma: use upstream xsession/wayland files
Browse files Browse the repository at this point in the history
  • Loading branch information
pasqui23 authored and peterhoeg committed Oct 15, 2021
1 parent 001f614 commit 4832352
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
11 changes: 3 additions & 8 deletions nixos/modules/services/x11/desktop-managers/plasma5.nix
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ let
fi
fi
''
+ ''
exec "${startplasma-x11}"
'';

in
Expand Down Expand Up @@ -183,18 +180,15 @@ in

config = mkMerge [
(mkIf cfg.enable {

# Seed our configuration into nixos-generate-config
system.nixos-generate-config.desktopConfiguration = [''
# Enable the Plasma 5 Desktop Environment.
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
''];

services.xserver.desktopManager.session = singleton {
name = "plasma5";
bgSupport = true;
start = startplasma;
};
services.xserver.displayManager.sessionPackages = [ pkgs.libsForQt5.plasma5.plasma-workspace ];

security.wrappers = {
kcheckpass =
Expand Down Expand Up @@ -389,6 +383,7 @@ in

# Update the start menu for each user that is currently logged in
system.userActivationScripts.plasmaSetup = activationScript;
services.xserver.displayManager.setupCommands = startplasma;

nixpkgs.config.firefox.enablePlasmaBrowserIntegration = true;
})
Expand Down
2 changes: 1 addition & 1 deletion nixos/tests/plasma5.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import ./make-test-python.nix ({ pkgs, ...} :
imports = [ ./common/user-account.nix ];
services.xserver.enable = true;
services.xserver.displayManager.sddm.enable = true;
services.xserver.displayManager.defaultSession = "plasma5";
services.xserver.displayManager.defaultSession = "plasma";
services.xserver.desktopManager.plasma5.enable = true;
services.xserver.displayManager.autoLogin = {
enable = true;
Expand Down
1 change: 1 addition & 0 deletions pkgs/desktops/plasma-5/plasma-workspace/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ let inherit (lib) getBin getLib; in

mkDerivation {
name = "plasma-workspace";
passthru.providedSessions = [ "plasma" "plasmawayland" ];

nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [
Expand Down

0 comments on commit 4832352

Please sign in to comment.