opencloud: Add service
This commit is contained in:
parent
390457ae1f
commit
bbf1828c9d
2 changed files with 34 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
# ./immich.nix
|
||||
./jellyfin.nix
|
||||
# ./minecraft.nix
|
||||
./opencloud.nix
|
||||
# ./pinchflat.nix
|
||||
./samba.nix
|
||||
./tailscale.nix
|
||||
|
|
|
|||
33
modules/nixos/opencloud.nix
Normal file
33
modules/nixos/opencloud.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
containers.cloud = {
|
||||
autoStart = true;
|
||||
bindMounts = {
|
||||
"/var/lib/opencloud" = {
|
||||
hostPath = "/mnt/sdb1/opencloud";
|
||||
isReadOnly = false;
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
services = {
|
||||
opencloud = {
|
||||
enable = true;
|
||||
# port = 9200;
|
||||
# settings = { };
|
||||
environment = {
|
||||
OC_INSECURE = "true";
|
||||
OC_URL = "https://cloud.alpine-centauri.ts.net";
|
||||
};
|
||||
};
|
||||
|
||||
tailscale = {
|
||||
enable = true;
|
||||
useRoutingFeatures = "server";
|
||||
interfaceName = "userspace-networking";
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue