added minecraft server
This commit is contained in:
parent
ff2317bf3e
commit
44e603d23c
4 changed files with 15 additions and 4 deletions
|
@ -32,8 +32,8 @@
|
|||
let
|
||||
system = "x86_64-linux";
|
||||
lib = nixpkgs.lib;
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; }; };
|
||||
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; config = { allowUnfree = true; }; };
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
./gitea.nix
|
||||
./hardware-configuration.nix
|
||||
./invidious.nix
|
||||
./minecraft.nix
|
||||
./radicale.nix
|
||||
./syncthing.nix
|
||||
|
||||
|
|
11
hosts/Anton/minecraft.nix
Normal file
11
hosts/Anton/minecraft.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, pkgs-unstable, ...}:
|
||||
{
|
||||
services.minecraft-server = {
|
||||
eula = true;
|
||||
enable = true;
|
||||
package = pkgs-unstable.minecraft-server;
|
||||
jvmOpts = "-Xms4096M -Xmx8192M";
|
||||
dataDir = "/mnt/data/services/minecraft";
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, hostname, ... }:
|
||||
{ pkgs, pkgs-unstable, hostname, ... }:
|
||||
{
|
||||
imports = [
|
||||
./autoupdate.nix
|
||||
|
@ -11,7 +11,6 @@
|
|||
hostName = "${hostname}";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue