home(libreoffice): add libreoffice package

This commit is contained in:
514fpv 2024-01-10 13:38:13 +08:00
parent 21c57a2b54
commit 120f8babac
Signed by: koishi
SSH key fingerprint: SHA256:2jRvFSzG5UeUlQ3WxZ2sbUOfo5wNKzv1fZsk/FexKjQ
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,9 @@
{ pkgs
, lib
, config
, ... }: with lib; let
cfg = config.passthrough.libreoffice;
enable = cfg.enable && (cfg.allUsers || (config.home.username == "app"));
in mkIf enable {
home.packages = with pkgs; [ libreoffice ];
}