add network access to postgresql container
Some checks failed
Hydra checks.x86_64-linux.containers-default Hydra build #25835 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra packages.x86_64-linux.art-lotte Hydra build #25756 of nixos-config:pr618:packages.x86_64-linux.art-lotte
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #25838 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra packages.aarch64-linux.art-lotte-bgs-nsfw Hydra build #25748 of nixos-config:pr618:packages.aarch64-linux.art-lotte-bgs-nsfw
Hydra packages.riscv64-linux.art-lotte Hydra build #25752 of nixos-config:pr618:packages.riscv64-linux.art-lotte
Hydra packages.aarch64-linux.art-lotte Hydra build #25747 of nixos-config:pr618:packages.aarch64-linux.art-lotte
Hydra packages.x86_64-linux.art-lotte-bgs-nsfw Hydra build #25757 of nixos-config:pr618:packages.x86_64-linux.art-lotte-bgs-nsfw
Hydra packages.riscv64-linux.art-lotte-bgs-sfw Hydra build #25754 of nixos-config:pr618:packages.riscv64-linux.art-lotte-bgs-sfw
Hydra packages.aarch64-linux.art-lotte-bgs-sfw Hydra build #25749 of nixos-config:pr618:packages.aarch64-linux.art-lotte-bgs-sfw
Hydra packages.aarch64-linux.kodi-joyn Hydra build #25750 of nixos-config:pr618:packages.aarch64-linux.kodi-joyn
Hydra packages.x86_64-linux.kodi-joyn Hydra build #25759 of nixos-config:pr618:packages.x86_64-linux.kodi-joyn
Hydra packages.x86_64-linux.package-updater Hydra build #25760 of nixos-config:pr618:packages.x86_64-linux.package-updater
Hydra nixosConfigurations.container-postgresql-aarch64-linux Hydra build #25839 of nixos-config:pr618:nixosConfigurations.container-postgresql-aarch64-linux
Hydra nixosConfigurations.not522 Hydra build #25842 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.not522-installer Hydra build #25843 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra nixosConfigurations.pc-installer Hydra build #25844 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra nixosConfigurations.thinkrac Hydra build #25846 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra devShells.x86_64-linux.default Hydra build #25738 of nixos-config:pr618:devShells.x86_64-linux.default
Hydra packages.aarch64-linux.package-updater Hydra build #25751 of nixos-config:pr618:packages.aarch64-linux.package-updater
Hydra packages.x86_64-linux.art-lotte-bgs-sfw Hydra build #25758 of nixos-config:pr618:packages.x86_64-linux.art-lotte-bgs-sfw
Hydra packages.riscv64-linux.art-lotte-bgs-nsfw Hydra build #25753 of nixos-config:pr618:packages.riscv64-linux.art-lotte-bgs-nsfw
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #25836 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra nixosConfigurations.container-postgresql-x86_64-linux Hydra build #25841 of nixos-config:pr618:nixosConfigurations.container-postgresql-x86_64-linux
Hydra nixosConfigurations.rainbow-resort Hydra build #25845 of nixos-config:pr618:nixosConfigurations.rainbow-resort

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-15 14:17:47 +01:00
parent ef18307232
commit f50e3a9f75
3 changed files with 18 additions and 1 deletions

View file

@ -4,4 +4,6 @@
config = import ./postgresql.nix;
autoStart = true;
privateNetwork = true;
hostBridge = "containers";
localAddress6 = "fdc6:e7e5:0ba1:1::2/64";
}

View file

@ -0,0 +1,15 @@
{ ... }:
{
imports = [
./autoconfig.nix
];
networking.interfaces.containers = {
ipv6.addresses = [
{
address = "fdc6:e7e5:0ba1:1::1";
prefixLength = 64;
}
];
};
networking.bridges.containers.interfaces = [ ];
}

View file

@ -12,7 +12,7 @@ with lib;
{
imports = [
./riscv.nix
./containers/autoconfig.nix
./containers/host.nix
./nix
./environment/impermanence.nix
./secrets/sops.nix