feat(selfhost/nextcloud): setting up the f*** nextcloud
This commit is contained in:
parent
a1bc1e4074
commit
e881327e72
4 changed files with 67 additions and 4 deletions
26
services/self_host.nix
Normal file
26
services/self_host.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ inputs, config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
nextcloud = import ./self_host/nextcloud.nix {
|
||||
inherit inputs config pkgs lib;
|
||||
};
|
||||
cfg = config.service.selfhost;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
nextcloud
|
||||
];
|
||||
|
||||
config = {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
options.service.selfhost = {
|
||||
nextcloud = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable the nextcloud";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue