mirror of
https://codeberg.org/muon/home.git
synced 2026-03-09 03:53:11 +00:00
Add seedbox
This commit is contained in:
parent
4744f39ad7
commit
08344a4843
4 changed files with 218 additions and 10 deletions
|
|
@ -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];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue