Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gnome3 and Pantheon in the same system does not build #64611

Open
romildo opened this issue Jul 11, 2019 · 17 comments
Open

Gnome3 and Pantheon in the same system does not build #64611

romildo opened this issue Jul 11, 2019 · 17 comments
Labels
0.kind: enhancement Add something new 6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: pantheon The Pantheon desktop environment 9.needs: module (update) This needs a module to be changed

Comments

@romildo
Copy link
Contributor

romildo commented Jul 11, 2019

Issue description

I want to have gnome3 and pantheon desktop managers in the same NixOS system, so that the user can choose the desired one at login time. So I have on configuration.nix:

  services.xserver.desktopManager.pantheon.enable = true;
  services.xserver.desktopManager.gnome3.enable = true;

But nixos-rebuild gives the following error:

error: The unique option `networking.networkmanager.basePackages.modemmanager' is defined multiple times, in:
 - /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/x11/desktop-managers/pantheon.nix
 - /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/x11/desktop-managers/gnome3.nix.
(use '--show-trace' to show detailed location information)

cc @worldofpeace

Technical details

  • system: "x86_64-linux"
  • host os: Linux 5.1.16, NixOS, 19.09pre184855.beff2f8d75e (Loris)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.2.2
  • channels(root): "nixos-19.09pre184855.beff2f8d75e"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
@worldofpeace
Copy link
Contributor

Currently there's a bit of work to be done so that both these session can exist on a system
without conflicting with each other and making a session unusable.

At first something like

diff --git a/nixos/modules/services/x11/desktop-managers/gnome3.nix b/nixos/modules/services/x11/desktop-managers/gnome3.nix
index ef6820d3326..9e8482432b4 100644
--- a/nixos/modules/services/x11/desktop-managers/gnome3.nix
+++ b/nixos/modules/services/x11/desktop-managers/gnome3.nix
@@ -206,7 +206,7 @@ in {
       isSystem = true;
     };
 
-    environment.variables.GNOME_SESSION_DEBUG = optionalString cfg.debug "1";
+    environment.variables.GNOME_SESSION_DEBUG = mkIf cfg.debug "1";
 
     # Override default mimeapps
     environment.variables.XDG_DATA_DIRS = [ "${mimeAppsList}/share" ];
@@ -228,7 +228,7 @@ in {
     ];
 
     # Use the correct gnome3 packageSet
-    networking.networkmanager.basePackages =
+    networking.networkmanager.basePackages = mkDefault
       { inherit (pkgs) networkmanager modemmanager wpa_supplicant;
         inherit (pkgs.gnome3) networkmanager-openvpn networkmanager-vpnc
                               networkmanager-openconnect networkmanager-fortisslvpn

would need to be done so they'd at least build.

From there we'd probably have to eliminate having to set NIX_GSETTINGS_OVERRIDES_DIR and use #54150. Then make them not conflict.

@worldofpeace worldofpeace added 0.kind: enhancement Add something new 6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: pantheon The Pantheon desktop environment 9.needs: module (update) This needs a module to be changed labels Jul 11, 2019
@wamserma
Copy link
Member

wamserma commented Jan 3, 2020

#58203 seems also to be related

@jtojnar
Copy link
Member

jtojnar commented Jan 4, 2020

The issues above are fixed but now the conflict occurs in environment.variables.NIX_GSETTINGS_OVERRIDES_DIR. Solution would be #54150

@stale
Copy link

stale bot commented Jul 2, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 2, 2020
@romildo
Copy link
Contributor Author

romildo commented Jul 2, 2020

The issues above are fixed but now the conflict occurs in environment.variables.NIX_GSETTINGS_OVERRIDES_DIR. Solution would be #54150

This is still an issue.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 2, 2020
@stale
Copy link

stale bot commented Dec 29, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 29, 2020
@romildo
Copy link
Contributor Author

romildo commented Jan 2, 2021

Still an issue.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 2, 2021
@stale
Copy link

stale bot commented Jul 1, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 1, 2021
@romildo
Copy link
Contributor Author

romildo commented Jul 1, 2021

Still an issue.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 1, 2021
@stale
Copy link

stale bot commented Jan 9, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 9, 2022
@romildo
Copy link
Contributor Author

romildo commented Jan 9, 2022

I marked this as stale due to inactivity. → More info

Not fixed yet.

@COLAMAroro
Copy link
Contributor

I just encountered the same issue with Gnome and Cinnamon, where both can not be enabled at the same time

image

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 11, 2022
@emiellr
Copy link

emiellr commented Jun 18, 2023

Still an issue, can't use gdm+gnome3+pantheon. Same problem occurs with gdm+gnome3+deepin.

@jtojnar
Copy link
Member

jtojnar commented Jun 18, 2023

Hopefully, #234615 will allow us to fix this.

@JohnRTitor JohnRTitor added this to GNOME Jun 20, 2024
@JohnRTitor JohnRTitor moved this to To Do in GNOME Jun 20, 2024
@rudra-code-creator
Copy link

The issues above are fixed but now the conflict occurs in environment.variables.NIX_GSETTINGS_OVERRIDES_DIR. Solution would be #54150

This is still an issue.

Still an issue in 2024. Facing this issue currently. Hope it gets fixed soon :)

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/help-i-cant-have-pantheon-gnome-and-plasma-installed-on-my-system-at-the-same-time/47346/4

@rudra-code-creator
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/help-i-cant-have-pantheon-gnome-and-plasma-installed-on-my-system-at-the-same-time/47346/4

OMG I started this thread on Discourse!

@bobby285271 bobby285271 moved this to To do in Pantheon Jun 22, 2024
@bobby285271 bobby285271 moved this from To do to Accepting PRs in Pantheon Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: enhancement Add something new 6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: pantheon The Pantheon desktop environment 9.needs: module (update) This needs a module to be changed
Projects
Status: To Do
Status: Accepting PRs
Development

No branches or pull requests

8 participants