Move libreoffice stuff into a module

This commit is contained in:
SebastianStork 2025-10-07 23:34:14 +02:00
parent 8593e7dae3
commit a176c88b5d
2 changed files with 21 additions and 7 deletions

View file

@ -0,0 +1,18 @@
{
config,
pkgs,
lib,
...
}:
{
options.custom.programs.libreoffice.enable = lib.mkEnableOption "";
config = lib.mkIf config.custom.programs.libreoffice.enable {
home.packages = with pkgs; [
libreoffice
hunspell
hunspellDicts.de_DE
hunspellDicts.en_US
];
};
}

View file

@ -9,10 +9,11 @@
programs = {
shell.zsh.enable = true;
kitty.enable = true;
firefox.enable = true;
git.enable = true;
kitty.enable = true;
vscode.enable = true;
firefox.enable = true;
libreoffice.enable = true;
};
};
@ -27,11 +28,6 @@
pkgs.anki
pkgs.discord
pkgs.libreoffice
pkgs.hunspell
pkgs.hunspellDicts.de_DE
pkgs.hunspellDicts.en_US
pkgs.corefonts
pkgs.roboto
pkgs.open-sans