home(minecraft): run minecraft under dedicated user

This commit is contained in:
514fpv 2024-05-31 11:09:20 +08:00
parent 1e9cc2ede2
commit b107b4f66b
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
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