mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:53: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
|
./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
|
||||||
|
|
|
@ -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"];
|
||||||
|
|
|
@ -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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue