Add initial cloudreve module

Uses the pro image, which I just paid for. I hope it's worth it...
This commit is contained in:
Eli Ribble 2025-07-18 23:59:42 +00:00
parent a26ed33b42
commit 5ce074917d
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{ config, lib, pkgs, configPath, ... }:
with lib;
{
options.myModules.cloudreve.enable = mkEnableOption "custom cloudreve configuration";
config = mkIf config.myModules.cloudreve.enable {
virtualisation.oci-containers.containers.cloudreve = {
environment = {
"CR_CONF_Database.Type" = "postgres";
"CR_CONF_Database.DatabaseURL" = "postgresql:///cloudreve?host=/run/postgresql/&user=cloudreve";
};
image = "cloudreve.azurecr.io/cloudreve/pro:4.3.0
ports = [ "127.0.0.1:10040:5212" ];
volumes = [
"/var/lib/cloudreve:/cloudreve/data"
];
};
};
}

View file

@ -5,6 +5,7 @@
./caddy.nix
./cloud-init.nix
./collabora.nix
./cloudreve.nix
./do-agent.nix
./element-web.nix
./fish.nix