You are viewing a single thread.
View all comments View context
2 points

Man nix looks soo damn cool. I just dont know if id ever actually use it. But a versioned controlled OS seems so sweet.

Can you use it to choose desktop environment as well?

permalink
report
parent
reply
2 points

You can. I run sway and it is configured through nix:

https://github.com/pimeys/nixos/blob/main/desktop/sway/default.nix

Gnome design makes it a bit harder, but not impossible:

https://hoverbear.org/blog/declarative-gnome-configuration-in-nixos/

Somebody doing the same for KDE:

https://github.com/LunNova/nixos-configs/blob/dev/users/lun/on-nixos/kdeconfig.nix

So the answer to your question is yes. It is possible and kind of required to go the full nix route with NixOS. It might not always be super straightforward with large DEs, and for sure works much better with window managers that already utilize text configuration.

permalink
report
parent
reply

Yep. To change desktop environments, just change:

services.xserver.gnome.enable = true;

to

services.xserver.plasma5.enable = true;
permalink
report
parent
reply
1 point

This is cool because it gets rid of all the packages when you switch. There is nothing left of Gnome when you switch to KDE.

permalink
report
parent
reply
1 point

Wow. Im gonna try it out in a vm even if i have no use for it. That is crazy.

permalink
report
parent
reply

It’s really nice. When you setup a new system, you don’t have to spend hours changing settings, configs, and installing packages. With NixOS, just copy the config file from your old system and then run nixos-rebuild.

permalink
report
parent
reply

Memes

!memes@lemmy.ml

Create post

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

Community stats

  • 9K

    Monthly active users

  • 12K

    Posts

  • 264K

    Comments