add nextcloud
This commit is contained in:
parent
6e43b1a0a0
commit
e73b94eb2c
1 changed files with 21 additions and 0 deletions
21
modules/services/nextcloud.nix
Normal file
21
modules/services/nextcloud.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options = {
|
||||||
|
myModules.enableNextcloud = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Enable Nextcloud server";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkMerge [
|
||||||
|
(lib.mkIf config.myModules.enableNextcloud {
|
||||||
|
services.nextcloud = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue