home(minecraft): run minecraft under dedicated user

This commit is contained in:
514fpv 2024-05-31 11:09:20 +08:00
parent 31c43ba342
commit 484295fc2a
Signed by: koishi
SSH key fingerprint: SHA256:2jRvFSzG5UeUlQ3WxZ2sbUOfo5wNKzv1fZsk/FexKjQ
2 changed files with 11 additions and 5 deletions

View file

@ -3,7 +3,7 @@
, config
, ... }: with lib; let
cfg = config.passthrough.minecraft;
enable = cfg.enable && (cfg.allUsers || (config.home.username == "app"));
enable = cfg.enable && config.home.username == "minecraft";
in mkIf enable {
home.packages = with pkgs; [
prismlauncher