42 lines
950 B
Nix
Executable file
42 lines
950 B
Nix
Executable file
{ pkgs, lib, config, office_stuff, ... }:
|
|
|
|
let
|
|
|
|
extra_office_packages = (lib.ifEnable config.fsr.enable_office_bloat (with pkgs; [
|
|
vlc
|
|
libreoffice-fresh
|
|
okular
|
|
texlive.combined.scheme-full
|
|
]));
|
|
|
|
|
|
in {
|
|
# enable XFCE as lightweight desktop environment
|
|
services = {
|
|
xserver.enable = true;
|
|
xserver.desktopManager.xfce.enable = true;
|
|
xserver.displayManager.defaultSession = "xfce";
|
|
|
|
# Configure keymap in X11
|
|
xserver.layout = "de";
|
|
xserver.xkbOptions = "eurosign:e,ctrl:nocaps,compose:prsc";
|
|
|
|
# enable touchpad support
|
|
xserver.libinput.enable = true;
|
|
};
|
|
# enable sound
|
|
sound.enable = true;
|
|
sound.mediaKeys.enable = true;
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
# additional programs for a lightweight working office environment
|
|
environment.systemPackages = with pkgs; [
|
|
## audio management
|
|
pavucontrol
|
|
## terminal, browsers, text editing
|
|
#vscodium
|
|
firefox
|
|
] ++ extra_office_packages;
|
|
|
|
}
|