onedrive: init

This commit is contained in:
DashieTM 2025-05-10 14:02:24 +02:00
parent 11a41563c8
commit 67190c1546
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,23 @@
{
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;
}
);
}