56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
stateDir = "/state";
|
|
primaryIp = "10.0.0.12";
|
|
generateMac = pkgs.lib.network.generate-mac-address;
|
|
in {
|
|
networking = {
|
|
useDHCP = false;
|
|
defaultGateway = {
|
|
address = "10.0.0.1";
|
|
interface = "intif0";
|
|
};
|
|
interfaces.intif0 = {
|
|
ipv4.addresses = [{
|
|
address = primaryIp;
|
|
prefixLength = 16;
|
|
}];
|
|
};
|
|
};
|
|
|
|
security.sudo.extraConfig = ''
|
|
# Due to rollback, sudo will lecture after every reboot
|
|
Defaults lecture = never
|
|
'';
|
|
|
|
fudo = {
|
|
minecraft-clj = {
|
|
enable = true;
|
|
state-directory = "/state/services/minecraft-clj";
|
|
admins = [ "fudoniten" ];
|
|
worlds = {
|
|
REPLand = { allocated-memory = 8; };
|
|
wof = {
|
|
world-name = "WorldOfFun";
|
|
world-seed = 2059666523504992;
|
|
port = 25567;
|
|
difficulty = "medium";
|
|
game-mode = "survival";
|
|
motd = "Welcome to the World of Fun!";
|
|
allow-cheats = true;
|
|
allocated-memory = 16;
|
|
pvp = false;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
systemd.targets = {
|
|
sleep.enable = false;
|
|
suspend.enable = false;
|
|
hibernate.enable = false;
|
|
hybrid-sleep.enable = false;
|
|
};
|
|
}
|