2024-05-18 21:20:50 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
2024-09-17 11:40:35 +02:00
|
|
|
pkgs,
|
2024-05-18 21:20:50 +02:00
|
|
|
...
|
|
|
|
}: let
|
2024-05-20 21:15:16 +02:00
|
|
|
cfg = config.myConfig.programs.nextcloud;
|
2024-05-18 21:20:50 +02:00
|
|
|
in {
|
2024-05-20 21:15:16 +02:00
|
|
|
options.myConfig.programs.nextcloud = {
|
|
|
|
enable = lib.mkEnableOption "nextcloud client";
|
2024-05-18 21:20:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-09-17 11:40:35 +02:00
|
|
|
services.nextcloud-client = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.unstable.nextcloud-client;
|
|
|
|
};
|
2024-05-18 21:20:50 +02:00
|
|
|
};
|
|
|
|
}
|