feat(minecraft): add prism launcher
This commit is contained in:
parent
27349be332
commit
cc2b1a7125
6
home/minecraft/home.nix
Normal file
6
home/minecraft/home.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ pkgs
|
||||||
|
, lib
|
||||||
|
, config
|
||||||
|
, ... }: with lib; mkIf config.passthrough.minecraft.enable {
|
||||||
|
home.packages = with pkgs; [ prismlauncher ];
|
||||||
|
}
|
19
home/minecraft/nixos.nix
Normal file
19
home/minecraft/nixos.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ pkgs
|
||||||
|
, lib
|
||||||
|
, config
|
||||||
|
, ... }: with lib; let
|
||||||
|
cfg = config.home.minecraft;
|
||||||
|
in {
|
||||||
|
options.home.minecraft = {
|
||||||
|
enable = mkEnableOption "minecraft game launcher and jvm";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
users.homeModules = [
|
||||||
|
# this module passes minecraft configuration to home-manager
|
||||||
|
{ passthrough.minecraft = cfg; }
|
||||||
|
];
|
||||||
|
|
||||||
|
users.home.persist.directories = [ ".local/share/PrismLauncher" ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue