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 ]; imports = [ ./options.nix ];
virtualisation.oci-containers.containers."${cfg.name}" = { config = mkIf cfg.enable {
autoStart = cfg.autoStart; virtualisation.oci-containers.containers."${cfg.name}" = {
image = cfg.image; autoStart = cfg.autoStart;
ports = [ image = cfg.image;
"${cfg.port}:443" ports = [
]; "${cfg.port}:443"
volumes = [ ];
"${cfg.configPath}:/config" volumes = [
"${cfg.dataPath}:/data" "${cfg.configPath}:/config"
"/run/postgresql:/run/postgresql" "${cfg.dataPath}:/data"
]; "/run/postgresql:/run/postgresql"
environmentFiles = [ ]; ];
environment = { environmentFiles = [ ];
PUID = cfg.puid; environment = {
PGID = cfg.pgid; PUID = cfg.puid;
TZ = cfg.timeZone; PGID = cfg.pgid;
TZ = cfg.timeZone;
};
}; };
}; };
} }

View File

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