made homelab import virtualization in order to share code between hosts

This commit is contained in:
Aly Raffauf 2024-03-06 23:49:20 -05:00
parent 1c3ee04906
commit d14da7c82c
3 changed files with 8 additions and 14 deletions

View file

@ -103,7 +103,6 @@
./system
./users/aly
./desktop/gnome
./modules/virtualization
./modules/homelab
./modules/steam
./modules/via-qmk

View file

@ -1,23 +1,15 @@
{ config, pkgs, ... }:
{
imports = [
../virtualization
];
# Open TCP ports for audiobookshelf, plex-server, and transmission-server.
networking.firewall.allowedTCPPorts = [ 51413 13378 32400 9091 ];
networking.firewall.allowedUDPPorts = [ 51413 ];
virtualisation = {
podman = {
enable = true;
# Create a `docker` alias for podman, to use it as a drop-in replacement
dockerCompat = true;
# Required for containers under podman-compose to be able to talk to each other.
defaultNetwork.settings.dns_enabled = true;
};
oci-containers = {
backend = "podman";
};
oci-containers.containers = {
audiobookshelf = {
ports = ["0.0.0.0:13378:80"];

View file

@ -18,5 +18,8 @@
# Required for containers under podman-compose to be able to talk to each other.
defaultNetwork.settings.dns_enabled = true;
};
oci-containers = {
backend = "podman";
};
};
}