forgot to change the blobercraft path to blob

This commit is contained in:
Squibid 2025-11-26 14:27:22 -05:00
parent 3d71ed911d
commit 9f388d75d8
Signed by: squibid
GPG key ID: BECE5684D3C4005D
7 changed files with 0 additions and 0 deletions

24
hosts/blob/minecraft.nix Normal file
View file

@ -0,0 +1,24 @@
{ lib, config, pkgs, ... }:
{
options.minecraft.enable = lib.mkEnableOption "enable minecraft user";
config = lib.mkIf config.minecraft.enable {
users.users.minecraft = {
createHome = true;
home = "/home/minecraft";
useDefaultShell = true;
isNormalUser = true;
description = "minecraft server account";
group = "minecraft";
openssh.authorizedKeys.keys = [] ++ config.ssh.keys;
# make sure we have every version of java required to run minecraft
packages = with pkgs; [
jre8
jre17_minimal
jre21_minimal
];
};
users.groups.minecraft = {};
};
}