-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixos/displayManager: deprecate separate options for default wm/dm
The upstream session files display managers use have no concept of sessions being composed from desktop manager and window manager. To be able to set upstream session files as default session, we need a single option. Having two different ways to set default session would be confusing, though, so we decided to deprecate the old method. We also created separate script for each session, just like we already had a separate desktop file for each one, and started using displayManager.sessionPackages mechanism to make the session handling more uniform.
- Loading branch information
Showing
20 changed files
with
254 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
nixos/modules/services/x11/display-managers/account-service-util.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ accountsservice | ||
, glib | ||
, gobject-introspection | ||
, python3 | ||
, wrapGAppsHook | ||
}: | ||
|
||
python3.pkgs.buildPythonApplication { | ||
name = "set-session"; | ||
|
||
format = "other"; | ||
|
||
src = ./set-session.py; | ||
|
||
dontUnpack = true; | ||
|
||
strictDeps = false; | ||
|
||
nativeBuildInputs = [ | ||
wrapGAppsHook | ||
gobject-introspection | ||
]; | ||
|
||
buildInputs = [ | ||
accountsservice | ||
glib | ||
]; | ||
|
||
propagatedBuildInputs = with python3.pkgs; [ | ||
pygobject3 | ||
ordered-set | ||
]; | ||
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp $src $out/bin/set-session | ||
chmod +x $out/bin/set-session | ||
''; | ||
} |
Oops, something went wrong.
8dc5ff7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/how-to-set-up-desktop-environment-per-user/6351/6