Reworked home manager configuration to modules
This commit is contained in:
23
modules/home/services/nextcloud.nix
Normal file
23
modules/home/services/nextcloud.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.settings.services.nextcloud-sync;
|
||||
in {
|
||||
options = {
|
||||
settings.services.nextcloud-sync.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
description = ''
|
||||
Enable Nextcloud syncronisation
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.nextcloud-client = {
|
||||
enable = true;
|
||||
startInBackground = true;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user