home(minecraft): add app user capability

This commit is contained in:
514fpv 2024-01-07 21:51:12 +08:00
parent 782107a6cf
commit b4a26160c1
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
2 changed files with 8 additions and 2 deletions

View file

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