This commit is contained in:
mjallen18
2025-11-16 20:18:13 -06:00
parent 1c1dc71cd7
commit 34b6399d24
2 changed files with 19 additions and 18 deletions

View File

@@ -11,22 +11,24 @@ in
{
imports = [ ./options.nix ];
virtualisation.oci-containers.containers."${cfg.name}" = {
autoStart = cfg.autoStart;
image = cfg.image;
ports = [
"${cfg.port}:443"
];
volumes = [
"${cfg.configPath}:/config"
"${cfg.dataPath}:/data"
"/run/postgresql:/run/postgresql"
];
environmentFiles = [ ];
environment = {
PUID = cfg.puid;
PGID = cfg.pgid;
TZ = cfg.timeZone;
config = mkIf cfg.enable {
virtualisation.oci-containers.containers."${cfg.name}" = {
autoStart = cfg.autoStart;
image = cfg.image;
ports = [
"${cfg.port}:443"
];
volumes = [
"${cfg.configPath}:/config"
"${cfg.dataPath}:/data"
"/run/postgresql:/run/postgresql"
];
environmentFiles = [ ];
environment = {
PUID = cfg.puid;
PGID = cfg.pgid;
TZ = cfg.timeZone;
};
};
};
}

View File

@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "kavishdevar";
repo = "librepods";
rev = "main";
rev = "55d1a69b21f37df3f3668a6f2ab21675c2c42243";
hash = "sha256-8kSrV9XgbfzPZ5kEL1J0ovzs+hT0GxacUDjT0eJdmKU=";
};
@@ -44,7 +44,6 @@ stdenv.mkDerivation rec {
"--prefix QT_PLUGIN_PATH : ${qt6.qtbase}/lib/qt6/plugins"
];
installPhase = ''
mkdir -p $out/bin
cp librepods $out/bin/