onedrive: init

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

View file

@ -28,6 +28,7 @@
./mime.nix
./ncspot.nix
./nextcloud.nix
./onedrive.nix
./oxi
./piper.nix
./plymouth.nix

View file

@ -0,0 +1,24 @@
{
config,
lib,
options,
pkgs,
...
}: {
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;
environment.systemPackages = [pkgs.onedrive];
}
);
}