add(libreoffice): home-manager package for libreoffice
This commit is contained in:
parent
b0682b23d5
commit
67177b1a1a
2 changed files with 23 additions and 0 deletions
|
@ -19,6 +19,7 @@ with lib.${namespace};
|
||||||
|
|
||||||
apps = {
|
apps = {
|
||||||
librewolf = enabled;
|
librewolf = enabled;
|
||||||
|
libreoffice = enabled;
|
||||||
thunderbird = enabled;
|
thunderbird = enabled;
|
||||||
chatterino = enabled;
|
chatterino = enabled;
|
||||||
mpv = enabled;
|
mpv = enabled;
|
||||||
|
|
22
modules/home/apps/libreoffice/default.nix
Normal file
22
modules/home/apps/libreoffice/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue