From 65369d7c1145479f8f71716403ea769f4bf1ef79 Mon Sep 17 00:00:00 2001 From: Victor Mignot Date: Fri, 6 Dec 2024 14:26:33 +0100 Subject: [PATCH] Add libreoffice module to home-manager configuration --- modules/workstation/home-manager/default.nix | 2 +- .../workstation/home-manager/libreoffice.nix | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 modules/workstation/home-manager/libreoffice.nix 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 + ] + ); + }; +}