Add libreoffice module to home-manager configuration

This commit is contained in:
Victor Mignot 2024-12-06 14:26:33 +01:00
parent df6f6ab815
commit 65369d7c11
Signed by: dala
SSH key fingerprint: SHA256:+3O9MhlDc2tJL0n+E+Myr7nL+74DP9AXdIXHmIqZTkY
2 changed files with 32 additions and 1 deletions

View file

@ -29,6 +29,7 @@ in
./mail.nix
./helix.nix
./games.nix
./libreoffice.nix
];
config = {
@ -44,7 +45,6 @@ in
nextcloud-client
keepassxc
ranger
libreoffice
tldr
zathura
lazygit

View file

@ -0,0 +1,31 @@
{
lib,
pkgs,
config,
...
}:
let
cfg = config.my.libreoffice;
in
with lib;
{
options = {
my.libreoffice.enable = mkOption {
type = types.bool;
default = true;
description = "Whether to enable LibreOffice on this workstation.";
};
};
config = {
home.packages = mkIf cfg.enable (
with pkgs;
[
libreoffice
hunspell
hunspellDicts.en_US
hunspellDicts.fr-any
]
);
};
}