mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-21 20:33:55 -05:00
made homelab import virtualization in order to share code between hosts
This commit is contained in:
parent
1c3ee04906
commit
d14da7c82c
|
@ -103,7 +103,6 @@
|
|||
./system
|
||||
./users/aly
|
||||
./desktop/gnome
|
||||
./modules/virtualization
|
||||
./modules/homelab
|
||||
./modules/steam
|
||||
./modules/via-qmk
|
||||
|
|
|
@ -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"];
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue