Compare commits
No commits in common. "7b129546bb20e4738796f65131771533a07858c4" and "979d6e11f2ce83c645d2ff430b429a5500074961" have entirely different histories.
7b129546bb
...
979d6e11f2
3 changed files with 7 additions and 18 deletions
|
@ -24,14 +24,7 @@
|
|||
|
||||
virtualisation.docker.enable = true;
|
||||
# Torrent client
|
||||
services.transmission = {
|
||||
enable = true;
|
||||
settings = {
|
||||
rpc-bind-address = "192.168.7.10";
|
||||
rpc-port = 9091;
|
||||
rpc-whitelist = "192.168.7.*";
|
||||
};
|
||||
};
|
||||
services.transmission.enable = true;
|
||||
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
|
@ -54,10 +47,10 @@
|
|||
bindMounts = {
|
||||
"${config.services.transmission.settings.download-dir}" = { };
|
||||
"/tmp/.X11-unix" = { };
|
||||
"/run/opengl-driver/lib" = { };
|
||||
"/run/opengl-driver-32/lib" = { };
|
||||
"/dev/kfd" = { };
|
||||
"/dev/dri" = { };
|
||||
"/run/opengl-driver/lib" = {};
|
||||
"/run/opengl-driver-32/lib" = {};
|
||||
"/dev/kfd" = {};
|
||||
"/dev/dri" = {};
|
||||
};
|
||||
config = { pkgs, ... }: {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
|
|
@ -8,12 +8,10 @@ in
|
|||
mindustry.enable = mkEnableOption "mindustry";
|
||||
widelands.enable = mkEnableOption "widelands";
|
||||
unciv.enable = mkEnableOption "unciv";
|
||||
freeciv.enable = mkEnableOption "freeciv";
|
||||
};
|
||||
|
||||
config.home.packages =
|
||||
lib.optional cfg.mindustry.enable pkgs.unstable.mindustry
|
||||
++ lib.optional cfg.widelands.enable pkgs.widelands
|
||||
++ lib.optional cfg.unciv.enable pkgs.unstable.unciv
|
||||
++ lib.optional cfg.freeciv.enable pkgs.unstable.freeciv;
|
||||
++ lib.optional cfg.unciv.enable pkgs.unstable.unciv;
|
||||
}
|
||||
|
|
|
@ -59,9 +59,7 @@ in
|
|||
firewall = {
|
||||
allowedTCPPorts = [ 4713 ];
|
||||
allowedTCPPortRanges = [
|
||||
{ from = 3000; to = 3999; }
|
||||
{ from = 5000; to = 5999; }
|
||||
{ from = 8000; to = 9999; }
|
||||
{ from = 3000; to = 9999; }
|
||||
{ from = 32000; to = 33999; }
|
||||
];
|
||||
trustedInterfaces = [ "ve-*" ];
|
||||
|
|
Loading…
Reference in a new issue