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
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = import nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; }; };
|
||||||
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
|
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; config = { allowUnfree = true; }; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./invidious.nix
|
./invidious.nix
|
||||||
|
./minecraft.nix
|
||||||
./radicale.nix
|
./radicale.nix
|
||||||
./syncthing.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 = [
|
imports = [
|
||||||
./autoupdate.nix
|
./autoupdate.nix
|
||||||
|
@ -11,7 +11,6 @@
|
||||||
hostName = "${hostname}";
|
hostName = "${hostname}";
|
||||||
};
|
};
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue