mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-23 03:32:08 +01:00
27 lines
361 B
Nix
27 lines
361 B
Nix
{ pkgs, lib, config, options, ... }:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.profile.programs.office;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
profile = {
|
|
programs = {
|
|
office = {
|
|
enable = mkEnableOption "Office";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home = {
|
|
packages = with pkgs; [
|
|
onlyoffice-bin
|
|
];
|
|
};
|
|
};
|
|
}
|