Compare commits

..

No commits in common. "7b129546bb20e4738796f65131771533a07858c4" and "979d6e11f2ce83c645d2ff430b429a5500074961" have entirely different histories.

3 changed files with 7 additions and 18 deletions

View file

@ -24,14 +24,7 @@
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
# Torrent client # Torrent client
services.transmission = { services.transmission.enable = true;
enable = true;
settings = {
rpc-bind-address = "192.168.7.10";
rpc-port = 9091;
rpc-whitelist = "192.168.7.*";
};
};
services.ollama = { services.ollama = {
enable = true; enable = true;
@ -54,10 +47,10 @@
bindMounts = { bindMounts = {
"${config.services.transmission.settings.download-dir}" = { }; "${config.services.transmission.settings.download-dir}" = { };
"/tmp/.X11-unix" = { }; "/tmp/.X11-unix" = { };
"/run/opengl-driver/lib" = { }; "/run/opengl-driver/lib" = {};
"/run/opengl-driver-32/lib" = { }; "/run/opengl-driver-32/lib" = {};
"/dev/kfd" = { }; "/dev/kfd" = {};
"/dev/dri" = { }; "/dev/dri" = {};
}; };
config = { pkgs, ... }: { config = { pkgs, ... }: {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

View file

@ -8,12 +8,10 @@ in
mindustry.enable = mkEnableOption "mindustry"; mindustry.enable = mkEnableOption "mindustry";
widelands.enable = mkEnableOption "widelands"; widelands.enable = mkEnableOption "widelands";
unciv.enable = mkEnableOption "unciv"; unciv.enable = mkEnableOption "unciv";
freeciv.enable = mkEnableOption "freeciv";
}; };
config.home.packages = config.home.packages =
lib.optional cfg.mindustry.enable pkgs.unstable.mindustry lib.optional cfg.mindustry.enable pkgs.unstable.mindustry
++ lib.optional cfg.widelands.enable pkgs.widelands ++ lib.optional cfg.widelands.enable pkgs.widelands
++ lib.optional cfg.unciv.enable pkgs.unstable.unciv ++ lib.optional cfg.unciv.enable pkgs.unstable.unciv;
++ lib.optional cfg.freeciv.enable pkgs.unstable.freeciv;
} }

View file

@ -59,9 +59,7 @@ in
firewall = { firewall = {
allowedTCPPorts = [ 4713 ]; allowedTCPPorts = [ 4713 ];
allowedTCPPortRanges = [ allowedTCPPortRanges = [
{ from = 3000; to = 3999; } { from = 3000; to = 9999; }
{ from = 5000; to = 5999; }
{ from = 8000; to = 9999; }
{ from = 32000; to = 33999; } { from = 32000; to = 33999; }
]; ];
trustedInterfaces = [ "ve-*" ]; trustedInterfaces = [ "ve-*" ];