nixos/home/minecraft/home.nix

17 lines
393 B
Nix
Raw Normal View History

2024-01-05 22:24:55 +08:00
{ pkgs
, lib
, config
, ... }: 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
];
wayland.windowManager.sway.config.window.commands = [
{ criteria.app_id = "org.prismlauncher.PrismLauncher"; command = "floating enable"; }
];
2024-01-05 22:24:55 +08:00
}