2022-04-19 16:39:09 +02:00
|
|
|
{ pkgs, lib, config, office_stuff, ... }:
|
2021-11-17 11:39:34 +01:00
|
|
|
|
2022-04-19 16:39:09 +02:00
|
|
|
let
|
|
|
|
|
|
|
|
extra_office_packages = (lib.ifEnable config.fsr.enable_office_bloat (with pkgs; [
|
|
|
|
vlc
|
|
|
|
libreoffice-fresh
|
|
|
|
okular
|
|
|
|
texlive.combined.scheme-full
|
|
|
|
]));
|
|
|
|
|
|
|
|
|
|
|
|
in {
|
2021-11-17 11:39:34 +01:00
|
|
|
# enable XFCE as lightweight desktop environment
|
2022-03-05 13:56:48 +01:00
|
|
|
services = {
|
|
|
|
xserver.enable = true;
|
|
|
|
xserver.desktopManager.xfce.enable = true;
|
|
|
|
xserver.displayManager.defaultSession = "xfce";
|
2021-11-17 11:39:34 +01:00
|
|
|
|
2022-03-05 13:56:48 +01:00
|
|
|
# Configure keymap in X11
|
|
|
|
xserver.layout = "de";
|
|
|
|
xserver.xkbOptions = "eurosign:e,ctrl:nocaps,compose:prsc";
|
2021-11-17 11:39:34 +01:00
|
|
|
|
2022-03-05 13:56:48 +01:00
|
|
|
# enable touchpad support
|
|
|
|
xserver.libinput.enable = true;
|
|
|
|
};
|
2021-11-17 11:39:34 +01:00
|
|
|
# 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
|
2022-04-19 16:39:09 +02:00
|
|
|
#vscodium
|
2021-11-17 11:39:34 +01:00
|
|
|
firefox
|
2022-04-19 16:39:09 +02:00
|
|
|
] ++ extra_office_packages;
|
|
|
|
|
2021-11-17 11:39:34 +01:00
|
|
|
}
|