Compare commits
4 commits
979d6e11f2
...
7b129546bb
Author | SHA1 | Date | |
---|---|---|---|
7b129546bb | |||
23acfa2b57 | |||
fb78ebafba | |||
a96ab9bf1f |
3 changed files with 18 additions and 7 deletions
|
@ -24,7 +24,14 @@
|
|||
|
||||
virtualisation.docker.enable = true;
|
||||
# Torrent client
|
||||
services.transmission.enable = true;
|
||||
services.transmission = {
|
||||
enable = true;
|
||||
settings = {
|
||||
rpc-bind-address = "192.168.7.10";
|
||||
rpc-port = 9091;
|
||||
rpc-whitelist = "192.168.7.*";
|
||||
};
|
||||
};
|
||||
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
|
@ -47,10 +54,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,10 +8,12 @@ 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.unciv.enable pkgs.unstable.unciv
|
||||
++ lib.optional cfg.freeciv.enable pkgs.unstable.freeciv;
|
||||
}
|
||||
|
|
|
@ -59,7 +59,9 @@ in
|
|||
firewall = {
|
||||
allowedTCPPorts = [ 4713 ];
|
||||
allowedTCPPortRanges = [
|
||||
{ from = 3000; to = 9999; }
|
||||
{ from = 3000; to = 3999; }
|
||||
{ from = 5000; to = 5999; }
|
||||
{ from = 8000; to = 9999; }
|
||||
{ from = 32000; to = 33999; }
|
||||
];
|
||||
trustedInterfaces = [ "ve-*" ];
|
||||
|
|
Loading…
Reference in a new issue