home(minecraft): add prism launcher
This commit is contained in:
parent
6d7360a75e
commit
d92ecf02bc
2 changed files with 25 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue