25 lines
537 B
Nix
25 lines
537 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
util,
|
|
...
|
|
}:
|
|
# Prism Launcher manages Minecraft instances.
|
|
let
|
|
user = config.user.name;
|
|
in
|
|
{
|
|
options.modules.desktop.apps.prismlauncher.enable =
|
|
lib.mkEnableOption "Prism Launcher, a Minecraft launcher";
|
|
|
|
config = lib.mkIf config.modules.desktop.apps.prismlauncher.enable {
|
|
home-manager.users.${user}.home.packages = [ pkgs.prismlauncher ];
|
|
|
|
registry.window-icon.${config.networking.hostName}.prismlauncher = {
|
|
class = "PrismLauncher";
|
|
icon = util.glyph "f11b";
|
|
};
|
|
};
|
|
}
|