Xfce: Difference between revisions
imported>Typetetris No edit summary |
A subsection on how to exclude packages in xfce. Tags: Mobile edit Mobile web edit |
||
| (8 intermediate revisions by 7 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 == | ||
To use xfce set <code> | To use xfce set <code>services.xserver.desktopManager.xfce.enable</code> to <code>true</code>. For example: | ||
{{file|/etc/nixos/configuration.nix|nix| | {{file|/etc/nixos/configuration.nix|nix| | ||
<nowiki> | <nowiki> | ||
| 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 35: | Line 58: | ||
enable = true; | enable = true; | ||
desktopManager = { | desktopManager = { | ||
xterm.enable = false; | xterm.enable = false; | ||
xfce = { | xfce = { | ||
| Line 44: | Line 66: | ||
}; | }; | ||
windowManager.i3.enable = true; | windowManager.i3.enable = true; | ||
}; | }; | ||
services.displayManager.defaultSession = "xfce"; | |||
... | ... | ||
} | } | ||
| Line 91: | Line 113: | ||
}; | }; | ||
}; | }; | ||
}; | }; | ||
services.displayManager.defaultSession = "xfce+xmonad"; | |||
... | ... | ||
} | } | ||
| Line 162: | Line 184: | ||
If you use pulse audio, set <code>nixpkgs.config.pulseaudio = true</code> as shown above. Otherwise, you may | If you use pulse audio, set <code>nixpkgs.config.pulseaudio = true</code> as shown above. Otherwise, you may | ||
experience glitches like being able to mute the sound card but not unmute it. | experience glitches like being able to mute the sound card but not unmute it. | ||
[[Category:Desktop environment]] | |||
[[Category:NixOS Manual]] | |||