Add libreoffice module to home-manager configuration
This commit is contained in:
parent
df6f6ab815
commit
65369d7c11
2 changed files with 32 additions and 1 deletions
|
@ -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
|
||||
|
|
31
modules/workstation/home-manager/libreoffice.nix
Normal file
31
modules/workstation/home-manager/libreoffice.nix
Normal 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
|
||||
]
|
||||
);
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue