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;
|
virtualisation.docker.enable = true;
|
||||||
# Torrent client
|
# 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 = {
|
services.ollama = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -47,10 +54,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;
|
||||||
|
|
|
@ -8,10 +8,12 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,9 @@ in
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedTCPPorts = [ 4713 ];
|
allowedTCPPorts = [ 4713 ];
|
||||||
allowedTCPPortRanges = [
|
allowedTCPPortRanges = [
|
||||||
{ from = 3000; to = 9999; }
|
{ from = 3000; to = 3999; }
|
||||||
|
{ from = 5000; to = 5999; }
|
||||||
|
{ from = 8000; to = 9999; }
|
||||||
{ from = 32000; to = 33999; }
|
{ from = 32000; to = 33999; }
|
||||||
];
|
];
|
||||||
trustedInterfaces = [ "ve-*" ];
|
trustedInterfaces = [ "ve-*" ];
|
||||||
|
|
Loading…
Reference in a new issue