Maybe you can use the virtualisation.oci-containers.containers.<name>.environmentFiles
option for that. At boot (or in a systemd timer if your ip address changes a lot, or even better, whenever you detect that it changes) run a script that writes your ip address to some file, e.g. /my-ip
, and then set environmentFiles = ["/my-ip"];
in your container configuration.
You should instead define the itstarsun/frida-nix
input in your flake.nix
and then pass it into default.nix
to make this pure, for example:
# flake.nix
{
description = "NixOS module which provides NVIDIA vGPU functionality";
inputs.frida.url = "github:itstarsun/frida-nix";
outputs = { self, frida }: {
nixosModules.nvidia-vgpu = import ./default.nix frida;
};
}
# default.nix
fridaFlake: { pkgs, lib, config, buildPythonPackage, ... }:
let
frida = fridaFlake.packages.${pkgs.system}.frida-tools;
# ...rest of your `default.nix`