blob: 1b92bb0734f27b25d15022972b61f493068745fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{
config,
lib,
pkgs,
username,
...
}:
let
inherit (lib) mkOption types mkIf;
cfg = config.nx.productivity.nextcloud-client;
in
{
options.nx.productivity.nextcloud-client = {
enable = mkOption {
description = "Client for nextcloud";
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
#home.packages = with pkgs; [ nextcloud-client ];
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
};
}
|