Add initial cloudreve module
Uses the pro image, which I just paid for. I hope it's worth it...
This commit is contained in:
parent
a26ed33b42
commit
5ce074917d
2 changed files with 22 additions and 0 deletions
21
modules/system/cloudreve.nix
Normal file
21
modules/system/cloudreve.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -5,6 +5,7 @@
|
|||
./caddy.nix
|
||||
./cloud-init.nix
|
||||
./collabora.nix
|
||||
./cloudreve.nix
|
||||
./do-agent.nix
|
||||
./element-web.nix
|
||||
./fish.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue