diff --git a/modules/workstation/home-manager/default.nix b/modules/workstation/home-manager/default.nix index 007178d..6d0ea25 100644 --- a/modules/workstation/home-manager/default.nix +++ b/modules/workstation/home-manager/default.nix @@ -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 diff --git a/modules/workstation/home-manager/libreoffice.nix b/modules/workstation/home-manager/libreoffice.nix new file mode 100644 index 0000000..d452d58 --- /dev/null +++ b/modules/workstation/home-manager/libreoffice.nix @@ -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 + ] + ); + }; +}