mirror of
https://github.com/tboerger/nixos-config
synced 2025-02-22 23:31:08 +01:00
28 lines
405 B
Nix
28 lines
405 B
Nix
{ pkgs, lib, config, options, ... }:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.profile.services.nextcloud;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
profile = {
|
|
services = {
|
|
nextcloud = {
|
|
enable = mkEnableOption "Nextcloud";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services = {
|
|
nextcloud-client = {
|
|
enable = true;
|
|
startInBackground = true;
|
|
};
|
|
};
|
|
};
|
|
}
|