2025-01-13 11:52:09 +08:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
|
|
|
let
|
2024-01-10 13:38:13 +08:00
|
|
|
cfg = config.passthrough.libreoffice;
|
|
|
|
enable = cfg.enable && (cfg.allUsers || (config.home.username == "app"));
|
2025-01-13 11:52:09 +08:00
|
|
|
in
|
|
|
|
mkIf enable {
|
2024-01-10 13:38:13 +08:00
|
|
|
home.packages = with pkgs; [ libreoffice ];
|
|
|
|
}
|