From aa334a1ec8c2fa926f66aa2d7620da8c944e7e91 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 24 May 2021 02:18:04 +0000 Subject: [PATCH] bvm-minecraft: add minecraft user, java 11 --- ops/nixos/bvm-minecraft/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ops/nixos/bvm-minecraft/default.nix b/ops/nixos/bvm-minecraft/default.nix index 5f8723fc40..8e2de0fae6 100644 --- a/ops/nixos/bvm-minecraft/default.nix +++ b/ops/nixos/bvm-minecraft/default.nix @@ -28,5 +28,18 @@ in { ]; }; + programs.java = { + enable = true; + package = pkgs.jdk11; + }; + + users.groups.minecraft = { + members = [ "minecraft" "lukegb" ]; + }; + users.users.minecraft = { + isNormalUser = true; + group = "minecraft"; + }; + system.stateVersion = "21.05"; }