mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 15:56:33 +01:00
Move minecraft srver into module
This commit is contained in:
parent
91e34642d0
commit
58d0a8730c
3 changed files with 20 additions and 15 deletions
|
@ -52,6 +52,7 @@
|
|||
./modules/printing
|
||||
#./modules/ssh
|
||||
./modules/steam
|
||||
./modules/minecraft-server
|
||||
./modules/users/jopejoe1
|
||||
nixos-hardware.nixosModules.common-cpu-intel
|
||||
nixos-hardware.nixosModules.common-gpu-intel
|
||||
|
|
19
modules/minecraft-server/default.nix
Normal file
19
modules/minecraft-server/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.minecraft-server = {
|
||||
enable = true;
|
||||
eula = true;
|
||||
openFirewall = true;
|
||||
declarative = true;
|
||||
serverProperties = {
|
||||
difficulty = 3;
|
||||
enable-rcon = true;
|
||||
"rcon.password" = "test";
|
||||
motd = "\\u00A7cWake up to reality! Nothing ever goes as planned in this accursed world.☯";
|
||||
spawn-protection = 0;
|
||||
level-type = "minecraft:amplified";
|
||||
level-name = "amplified_world";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -32,21 +32,6 @@
|
|||
programs.haguichi.enable = true;
|
||||
|
||||
#boot.kernelParams = [ "module_blacklist=i915" ];
|
||||
services.minecraft-server = {
|
||||
enable = true;
|
||||
eula = true;
|
||||
openFirewall = true;
|
||||
declarative = true;
|
||||
serverProperties = {
|
||||
difficulty = 3;
|
||||
enable-rcon = true;
|
||||
"rcon.password" = "test";
|
||||
motd = "\\u00A7cWake up to reality! Nothing ever goes as planned in this accursed world.☯";
|
||||
spawn-protection = 0;
|
||||
level-type = "minecraft:amplified";
|
||||
level-name = "amplified_world";
|
||||
};
|
||||
};
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
google-fonts
|
||||
|
|
Loading…
Reference in a new issue