Add seedbox

This commit is contained in:
muon 2026-01-02 19:24:15 +00:00
parent 4744f39ad7
commit 08344a4843
4 changed files with 218 additions and 10 deletions

View file

@ -1,4 +1,9 @@
{ pkgs, lib, config, ... }: {
{
pkgs,
lib,
config,
...
}: {
options.mods.containers = {
enable = lib.mkEnableOption {
default = false;
@ -6,7 +11,10 @@
};
};
imports = [ ./steam.nix ];
imports = [
./steam.nix
./seedbox.nix
];
config = lib.mkIf config.mods.containers.enable {
virtualisation.docker.enable = true;
@ -16,10 +24,10 @@
};
networking.nat = {
enable = true;
internalInterfaces = [ "ve-+" ];
internalInterfaces = ["ve-+"];
externalInterface = "enp0s31f6";
};
networking.networkmanager.unmanaged = [ "interface-name:ve-*" ];
networking.networkmanager.unmanaged = ["interface-name:ve-*"];
# networking = {
# bridges.br0.interfaces = [ "enp0s31f6" ]; # Adjust interface accordingly
@ -45,6 +53,6 @@
# tcp = { enable = true; anonymousClients = { allowedIpRanges = ["127.0.0.1" "192.168.100.0/24"]; }; };
# };
environment.systemPackages = with pkgs; [ xorg.xhost ];
environment.systemPackages = with pkgs; [xorg.xhost];
};
}