nixos-config/modules/home/programs/minecraft-bedrock/default.nix

34 lines
698 B
Nix

{
lib,
pkgs,
inputs,
namespace,
system,
target,
format,
virtual,
systems,
config,
...
}:
with lib;
with lib.${namespace}; let
cfg = config.${namespace}.programs.minecraft-bedrock;
impermanence = config.${namespace}.impermanence;
in {
options.${namespace}.programs.minecraft-bedrock = with types; {
enable = mkBoolOpt false "Enable mcpelauncher";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [mcpelauncher-ui-qt];
home.persistence = mkIf impermanence.enable {
"${impermanence.persistentStorage}".directories = [
{
directory = ".local/share/mcpelauncher";
method = "symlink";
}
];
};
};
}