diff options
author | José Romildo Malaquias <malaquias@gmail.com> | 2020-05-22 16:09:51 -0300 |
---|---|---|
committer | José Romildo Malaquias <malaquias@gmail.com> | 2020-05-24 00:22:53 -0300 |
commit | 5a73d925ca0f4d3ba1f32eb2d7271f40903e10e2 (patch) | |
tree | a060075d400aa7609d1572094366a4a5e5d251b1 /nixos/modules/services/x11/desktop-managers/enlightenment.nix | |
parent | 05828a59a78ace8886da39ace60b545decf8d259 (diff) |
nixos/enlightenment: use display manager session packages
Diffstat (limited to 'nixos/modules/services/x11/desktop-managers/enlightenment.nix')
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/enlightenment.nix | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/enlightenment.nix b/nixos/modules/services/x11/desktop-managers/enlightenment.nix index 1690a7d51a88..f43dd4538cfb 100644 --- a/nixos/modules/services/x11/desktop-managers/enlightenment.nix +++ b/nixos/modules/services/x11/desktop-managers/enlightenment.nix @@ -50,9 +50,10 @@ in "/share/locale" ]; - services.xserver.desktopManager.session = [ - { name = "Enlightenment"; - start = '' + services.xserver.displayManager.sessionPackages = [ pkgs.enlightenment.enlightenment ]; + + services.xserver.displayManager.sessionCommands = '' + if test "$XDG_CURRENT_DESKTOP" = "Enlightenment"; then export XDG_MENU_PREFIX=e- export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}" @@ -62,10 +63,8 @@ in # Update user dirs as described in http://freedesktop.org/wiki/Software/xdg-user-dirs/ ${pkgs.xdg-user-dirs}/bin/xdg-user-dirs-update - - exec ${e.enlightenment}/bin/enlightenment_start - ''; - }]; + fi + ''; security.wrappers = (import "${e.enlightenment}/e-wrappers.nix").security.wrappers; |