2024-01-05 22:24:55 +08:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, config
|
2024-01-07 21:51:12 +08:00
|
|
|
, ... }: with lib; let
|
|
|
|
cfg = config.passthrough.minecraft;
|
|
|
|
enable = cfg.enable && (cfg.allUsers || (config.home.username == "app"));
|
|
|
|
in mkIf enable {
|
2024-01-07 13:57:59 +08:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
prismlauncher
|
|
|
|
jdk8
|
|
|
|
];
|
2024-01-16 14:23:33 +08:00
|
|
|
|
|
|
|
wayland.windowManager.sway.config.window.commands = [
|
|
|
|
{ criteria.app_id = "org.prismlauncher.PrismLauncher"; command = "floating enable"; }
|
|
|
|
];
|
2024-01-05 22:24:55 +08:00
|
|
|
}
|