1
0
Fork 0
nix-config/modules/home/apps/libreoffice/default.nix

22 lines
354 B
Nix

{
config,
lib,
pkgs,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.apps.libreoffice;
in
{
options.${namespace}.apps.libreoffice = with types; {
enable = mkBoolOpt false "Whether or not to enable libreoffice.";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [ libreoffice ];
};
}