maia: move minecraft-modpack to maia

This commit is contained in:
Gabriel Fontes
2022-08-22 11:30:36 -03:00
parent fa93e4fd08
commit 98f1c4e413
7 changed files with 27 additions and 9 deletions
+1 -1
View File
@@ -143,7 +143,7 @@
"games"
];
wallpaper = "aurora-borealis-water-mountain";
colorscheme = "nebula";
colorscheme = "spaceduck";
};
# Laptop
"misterio@pleione" = mkHome {
-4
View File
@@ -1,4 +0,0 @@
{
networking.firewall.allowedUDPPorts = [ 25565 24454 ];
networking.firewall.allowedTCPPorts = [ 25565 ];
}
-2
View File
@@ -15,8 +15,6 @@ in
++ (lib.optional config.networking.wireless.userControlled.enable config.networking.wireless.userControlled.group)
++ (lib.optional config.programs.wireshark.enable "wireshark")
++ (lib.optional config.hardware.i2c.enable "i2c")
++ (lib.optional config.services.minecraft-server.enable "minecraft")
++ (lib.optional (config.systemd.services.minecraft-modpack or { enable = false; }).enable "minecraft-modpack")
++ (lib.optional config.services.mysql.enable "mysql")
++ (lib.optional config.virtualisation.docker.enable "docker")
++ (lib.optional config.virtualisation.podman.enable "podman")
-1
View File
@@ -6,6 +6,5 @@
./mail.nix
./nginx.nix
./website.nix
./minecraft-modpack.nix
];
}
+22
View File
@@ -10,6 +10,7 @@
../common/users/misterio.nix
../common/users/layla.nix
./services
../common/optional/quietboot.nix
../common/optional/tailscale.nix
];
@@ -18,6 +19,27 @@
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
};
networking = {
useDHCP = false;
interfaces.enp2s0 = {
useDHCP = true;
wakeOnLan.enable = true;
ipv4 = {
addresses = [{
address = "192.168.0.13";
prefixLength = 24;
}];
};
ipv6 = {
addresses = [{
address = "2804:14d:8084:a484::3";
prefixLength = 64;
}];
};
};
};
hardware.nvidia.prime.offload.enable = false;
system.stateVersion = "22.05";
# TODO: Add graphical stuff
+3
View File
@@ -0,0 +1,3 @@
{
imports = [ ./minecraft-modpack.nix ];
}
@@ -48,7 +48,7 @@ in
# Open ports
networking.firewall = {
# Minecraft
allowedTCPPorts = [ 25565 ];
allowedTCPPorts = [ 25565 24454 ];
# Query and Voice chat
allowedUDPPorts = [ 25565 24454 ];
};