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 ./system
./users/aly ./users/aly
./desktop/gnome ./desktop/gnome
./modules/virtualization
./modules/homelab ./modules/homelab
./modules/steam ./modules/steam
./modules/via-qmk ./modules/via-qmk

View file

@ -1,23 +1,15 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [
../virtualization
];
# Open TCP ports for audiobookshelf, plex-server, and transmission-server. # Open TCP ports for audiobookshelf, plex-server, and transmission-server.
networking.firewall.allowedTCPPorts = [ 51413 13378 32400 9091 ]; networking.firewall.allowedTCPPorts = [ 51413 13378 32400 9091 ];
networking.firewall.allowedUDPPorts = [ 51413 ]; networking.firewall.allowedUDPPorts = [ 51413 ];
virtualisation = { 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 = { oci-containers.containers = {
audiobookshelf = { audiobookshelf = {
ports = ["0.0.0.0:13378:80"]; 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. # Required for containers under podman-compose to be able to talk to each other.
defaultNetwork.settings.dns_enabled = true; defaultNetwork.settings.dns_enabled = true;
}; };
oci-containers = {
backend = "podman";
};
}; };
} }