move services
This commit is contained in:
parent
128005e354
commit
feb53bc5fc
23 changed files with 28 additions and 28 deletions
33
modules/nixos/services/nextcloud.nix
Normal file
33
modules/nixos/services/nextcloud.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
osbmModules.enableNextcloud = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable Nextcloud server";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf config.osbmModules.enableNextcloud {
|
||||
environment.etc."nextcloud-admin-pass".text = "m7eJ4KJ1NK33JE%51";
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud31;
|
||||
hostName = "localhost/nextcloud";
|
||||
config.adminpassFile = "/etc/nextcloud-admin-pass";
|
||||
config.dbtype = "sqlite";
|
||||
database.createLocally = true;
|
||||
settings.trusted_domains = [
|
||||
"wallfacer.curl-boga.ts.net"
|
||||
"localhost"
|
||||
];
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue