added option to toggle office bloat

This commit is contained in:
revol-xut 2022-04-19 16:39:09 +02:00
parent a8a8e6bad5
commit 048bd78eeb
No known key found for this signature in database
GPG key ID: 4F56FF7759627D07
6 changed files with 45 additions and 26 deletions

View file

@ -1,6 +1,16 @@
{ pkgs, config, ... }:
{ 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;
@ -24,16 +34,8 @@
## audio management
pavucontrol
## terminal, browsers, text editing
vscodium
#vscodium
firefox
## document viewers
okular
## LaTeX
texlive.combined.scheme-full
texstudio
## the eternal pain continues
libreoffice-fresh
# media viewers
vlc
];
] ++ extra_office_packages;
}

View file

@ -1,8 +1,4 @@
{ pkgs
, lib
, config
, ...
}:
{ pkgs, lib, config, ...}:
let
fsr-infoscreen = pkgs.fsr-infoscreen;

7
modules/options.nix Normal file
View file

@ -0,0 +1,7 @@
{config, lib, ...}: with lib; {
options.fsr.enable_office_bloat = mkOption {
type = types.bool;
default = false;
description = "install heavy office bloat like texlive, okular, ...";
};
}