home(minecraft): make username configurable

This commit is contained in:
514fpv 2024-05-31 14:00:52 +08:00
parent 331728d02f
commit ab343f2e89
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
2 changed files with 10 additions and 5 deletions

View file

@ -4,7 +4,7 @@
, ... }: with lib; let
inherit (config.passthrough) gui;
cfg = config.passthrough.minecraft;
enable = cfg.enable && config.home.username == "minecraft";
enable = cfg.enable && config.home.username == cfg.user;
in mkIf enable {
home.packages = with pkgs; [
jdk8