Won't boot into plasma

I installed the plasma verison and I can boot to the command line but it does not go to the desktop.
Config is the minimum as the manual said to do I think my problem in my EVGA GeForce RTX 2070 (Nvidia card) and if I put allowUnfree = true in my config it won’t rebuild I get syntax errors but the code is exactly like the samples online.
version 21.05
Ryzen 3700 1TB NVME drive 32GB ram
I have also tried this code and just get syntax errors ANYTHING I add to the config it won’t rebuild.
{ config, pkgs, … }: {
boot.blacklistedKernelModules = [ “nouveau” ];
boot.kernelParams = [ “nomodeset” “video=vesa:off” “vga=normal” ];
boot.vesa = false;

hardware.opengl.enable = true;
hardware.opengl.driSupport32Bit = true;
services.xserver.videoDrivers = [ “nvidia” “vesa” ];

it would help if you can post your code and the samples you found online

I did its in the post { config …

It’s interesting that I installed it in Gnome version no problem, still want to get plasma working.

It would be interesting to see an example of 'ANYTHING I add to the config. Like for example:

Can’t really help you with syntax errors if we don’t know what the code and error is.

The config you posted isn’t complete at all and doesn’t really say much. In particular, note that in the generated config, the commented out lines aren’t default values. If you need one you need to uncomment and edit them yourself.

If i put this code in my configuration.nix file one at a time i get a error about the =
it doesnt like it there which makes no sense it came out of the wiki.
{ nixpkgs.config.allowUnfree = true; }


Syntax errors tell you the exact line in configuration.nix that the error occurred on. Are you using an editor with line numbers so you can inspect the right line?

And it would help if you could copy-paste your entire configuration.nix into a github gist and link it here.

Here is the link to my config file Configuration.nix

Here is the error.

Your Nix is invalid.

{ config, pkgs, ... }:

nixpkgs.config.allowUnfree = true;
services.xserver.videoDrivers = [ "nvidia" ];

  imports = { ... };
  # ...

Those two lines you added need to be inside the brace. Simply moving them down (and identing them for style) should allow you to keep iterating.

The entire configuration.nix is a Nix expression that is a function that returns an attribute set (the entire thing that starts with that opening brace). What you have now is sorta like writing code outside of a main function in C.

1 Like