Xfce: Difference between revisions
imported>Vater mNo edit summary |
A subsection on how to exclude packages in xfce. Tags: Mobile edit Mobile web edit |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[http://www.xfce.org Xfce] is a lightweight desktop environment based on GTK+. It includes a window manager, a file manager, desktop and panel. | [http://www.xfce.org Xfce] is a lightweight desktop environment based on GTK+. It includes a window manager, a file manager, desktop and panel. | ||
This article is an extension of the documentation in the [https://nixos.org/manual/nixos/stable/#sec-xfce NixOS manual]. | |||
== Enabling == | == Enabling == | ||
Line 16: | Line 18: | ||
xfce.enable = true; | xfce.enable = true; | ||
}; | }; | ||
}; | }; | ||
services.displayManager.defaultSession = "xfce"; | |||
... | ... | ||
} | } | ||
Line 23: | Line 25: | ||
}} | }} | ||
{{Evaluate}} | {{Evaluate}} | ||
=== Excluding xfce applications === | |||
Xfce does not include as many applications by default as some other desktop environments. Still, those can be excluded as demonstrated in the example below. Place this before the <code>services.xserver</code> snippet from above. | |||
{{file|/etc/nixos/configuration.nix|nix| | |||
<nowiki> | |||
{ | |||
environment.xfce.excludePackages = with pkgs.xfce; [ | |||
mousepad | |||
parole | |||
# ristretto | |||
xfce4-appfinder | |||
# xfce4-notifyd | |||
xfce4-screenshooter | |||
# xfce4-session | |||
# xfce4-settings | |||
# xfce4-taskmanager | |||
# xfce4-terminal | |||
]; | |||
} | |||
</nowiki> | |||
}} | |||
=== Using as a desktop manager and not a window manager === | === Using as a desktop manager and not a window manager === | ||
Line 42: | Line 65: | ||
}; | }; | ||
}; | }; | ||
windowManager.i3.enable = true; | windowManager.i3.enable = true; | ||
}; | }; | ||
services.displayManager.defaultSession = "xfce"; | |||
... | ... | ||
} | } | ||
Line 90: | Line 113: | ||
}; | }; | ||
}; | }; | ||
}; | }; | ||
services.displayManager.defaultSession = "xfce+xmonad"; | |||
... | ... | ||
} | } | ||
Line 163: | Line 186: | ||
[[Category:Desktop environment]] | [[Category:Desktop environment]] | ||
[[Category:NixOS Manual]] |