分类:桌面环境

From NixOS Wiki
Revision as of 16:45, 4 September 2024 by MorningstarSunset (talk | contribs) (Created page with "{{file|/etc/nixos/configuration.nix|nix|<nowiki> services.xserver.enable = true; services.xserver.displayManager.gdm.enable = true; services.xserver.desktopManager.gnome.enable = true; </nowiki>}}")

linux 桌面环境是图形用户界面,也是PC设置的工具集。用于管理窗口,调整设置等,同时提供不同的特性和用户体验。

与大多数其他的Linux发行版相反,在Nixos中,安装或修改桌面环境只是件简单的小事。例如,要使用功能齐全的GNOME桌面环境只需要在你的配置中添加如下几行。

/etc/nixos/configuration.nix
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;

Changing the desktopManager and displayManager options should be enough to select a different desktop environment. Applying the configuration and rebooting the system should greet you to your new environment. Only some desktop environments require additional configuration options. Because of how NixOS works, the system will not become bloated when experimenting with different desktop environments by their various tools and dependencies: The default applications of a desktop environment are only here when said desktop environment is active, or when you manually install programs from another desktop environment.

Desktop Environment displayManager (others may work too) desktopManager additionally needed
Gnome gdm gnome
KDE/Plasma5 sddm plasma5
KDE/Plasma6 sddm plasma6 services.displayManager.sddm.wayland.enable = true;
Cinnamon lightdm cinnamon
Mate lightdm mate
XFCE lightdm xfce
Budgie lightdm budgie
Deepin lightdm deepin
Pantheon lightdm pantheon
CDE lightdm cde
COSMIC see COSMIC
LXQT lightdm lxqt
Lumina lightdm lumina

This category currently contains no pages or media.