DashNix/modules/programs/onedrive.nix
2025-05-10 14:02:24 +02:00

23 lines
458 B
Nix

{
lib,
config,
options,
...
}: {
options.mods = {
onedrive = {
enable = lib.mkOption {
default = false;
example = true;
type = lib.types.bool;
description = "Enable onedrive program and service";
};
};
};
config = lib.mkIf config.mods.onedrive.enable (
lib.optionalAttrs (options ? environment) {
services.onedrive.enable = true;
programs.onedrive.enable = true;
}
);
}