Hi!I want to install Gnome alongside KDE when I typed sudo nixos-rebuild switch command gives me errors!
error:
… while evaluating the attribute ‘config’
at /nix/store/pm0770vy1cvgr38n5gllxqfa5p0mxqyn-nixos-23.11.3640.56911ef3403a/nixos/lib/modules.nix:320:9:
319| options = checked options;
320| config = checked (removeAttrs config [ "_module" ]);
| ^
321| _module = checked (config._module);
… while calling the 'seq' builtin
at /nix/store/pm0770vy1cvgr38n5gllxqfa5p0mxqyn-nixos-23.11.3640.56911ef3403a/nixos/lib/modules.nix:32
0:18:
319| options = checked options;
320| config = checked (removeAttrs config [ "_module" ]);
| ^
321| _module = checked (config._module);
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute 'services.xserver.enable' already defined at /etc/nixos/configuration.nix:47:3
at /etc/nixos/configuration.nix:53:3:
52| services.xserver.desktopManager.xfce.enable = true;
53| services.xserver.enable = false;
| ^
54| services.xserver.displayManager.gdm.enable = false;
building Nix…
error:
… while evaluating the attribute ‘config’
at /nix/store/pm0770vy1cvgr38n5gllxqfa5p0mxqyn-nixos-23.11.3640.56911ef3403a/nixos/lib/modules.nix:320:9:
319| options = checked options;
320| config = checked (removeAttrs config [ "_module" ]);
| ^
321| _module = checked (config._module);
… while calling the 'seq' builtin
at /nix/store/pm0770vy1cvgr38n5gllxqfa5p0mxqyn-nixos-23.11.3640.56911ef3403a/nixos/lib/modules.nix:32
0:18:
319| options = checked options;
320| config = checked (removeAttrs config [ "_module" ]);
| ^
321| _module = checked (config._module);
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute 'services.xserver.enable' already defined at /etc/nixos/configuration.nix:47:3
at /etc/nixos/configuration.nix:53:3:
52| services.xserver.desktopManager.xfce.enable = true;
53| services.xserver.enable = false;
| ^
54| services.xserver.displayManager.gdm.enable = false;
building the system configuration…
error:
… while evaluating the attribute ‘config.system.build.toplevel’
at /nix/store/pm0770vy1cvgr38n5gllxqfa5p0mxqyn-nixos-23.11.3640.56911ef3403a/nixos/lib/modules.nix:320:9:
319| options = checked options;
320| config = checked (removeAttrs config [ "_module" ]);
| ^
321| _module = checked (config._module);
… while calling the 'seq' builtin
at /nix/store/pm0770vy1cvgr38n5gllxqfa5p0mxqyn-nixos-23.11.3640.56911ef3403a/nixos/lib/modules.nix:32
0:18:
319| options = checked options;
320| config = checked (removeAttrs config [ "_module" ]);
| ^
321| _module = checked (config._module);
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute 'services.xserver.enable' already defined at /etc/nixos/configuration.nix:47:3
at /etc/nixos/configuration.nix:53:3:
52| services.xserver.desktopManager.xfce.enable = true;
53| services.xserver.enable = false;
| ^
54| services.xserver.displayManager.gdm.enable = false;
[victor@nixos:~]$