Compare commits
3 Commits
e1cc2342b2
...
9cc07cdfaf
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9cc07cdfaf | ||
![]() |
33b9cee6a0 | ||
![]() |
47479f40d1 |
@ -8,18 +8,28 @@
|
|||||||
networking.hostName = "20212060";
|
networking.hostName = "20212060";
|
||||||
|
|
||||||
# Admin users
|
# Admin users
|
||||||
users.users.jan.extraGroups = [ "wheel" ];
|
users.users.jan.extraGroups = [
|
||||||
|
"wheel"
|
||||||
|
"wireshark"
|
||||||
|
];
|
||||||
|
|
||||||
# Enable virtualisation for VMs
|
# Enable virtualisation for VMs
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|
||||||
|
# Enable wireshark
|
||||||
|
programs.wireshark = {
|
||||||
|
enable = true;
|
||||||
|
dumpcap.enable = true;
|
||||||
|
usbmon.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Set up wstunnel client
|
# Set up wstunnel client
|
||||||
services.wstunnel = {
|
services.wstunnel = {
|
||||||
enable = true;
|
enable = true;
|
||||||
clients.wg-tunnel = {
|
clients.wg-tunnel = {
|
||||||
connectTo = "wss://tunnel.bulthuis.dev:443";
|
connectTo = "wss://tunnel.bulthuis.dev:443";
|
||||||
localToRemote = [
|
localToRemote = [
|
||||||
"udp://51820:10.10.40.100:51820"
|
"udp://51820:10.10.40.100:51820?timeout_sec=0"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
44
hosts/vm-minecraft/configuration.nix
Normal file
44
hosts/vm-minecraft/configuration.nix
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
# State version
|
||||||
|
system.stateVersion = "24.11";
|
||||||
|
|
||||||
|
# Import the nix-minecraft modules
|
||||||
|
imports = [
|
||||||
|
inputs.nix-minecraft.nixosModules.minecraft-servers
|
||||||
|
];
|
||||||
|
|
||||||
|
# Machine hostname
|
||||||
|
networking.hostName = "vm-minecraft";
|
||||||
|
|
||||||
|
# Enabled modules
|
||||||
|
modules = {
|
||||||
|
profiles.vm.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Set up minecraft servers
|
||||||
|
services.minecraft-servers = {
|
||||||
|
enable = true;
|
||||||
|
eula = true;
|
||||||
|
openFirewall = true;
|
||||||
|
servers = {
|
||||||
|
modpack = {
|
||||||
|
enable = true;
|
||||||
|
autoStart = true;
|
||||||
|
serverProperties = { };
|
||||||
|
package = inputs.nix-modpack.packages.${pkgs.system}.mkModpackServer {
|
||||||
|
packUrl = "https://raw.githubusercontent.com/Jan-Bulthuis/Modpack/refs/heads/master/pack.toml";
|
||||||
|
server = inputs.nix-minecraft.legacyPackages.${pkgs.system}.neoForgeServers.neoforge-20_1_106;
|
||||||
|
};
|
||||||
|
jvmOpts = "-Xms6144M -Xmx8192M";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
7
hosts/vm-minecraft/users/local.nix
Normal file
7
hosts/vm-minecraft/users/local.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.stateVersion = "24.11";
|
||||||
|
|
||||||
|
modules.profiles.base.enable = true;
|
||||||
|
}
|
@ -38,6 +38,7 @@ in
|
|||||||
bottles
|
bottles
|
||||||
prismlauncher
|
prismlauncher
|
||||||
foliate
|
foliate
|
||||||
|
wireshark
|
||||||
];
|
];
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user