30 lines
517 B
Nix
30 lines
517 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
lib.my.makeSwitch {
|
|
inherit config;
|
|
optionName = "minecraft";
|
|
optionPath = [
|
|
"desktop"
|
|
"gaming"
|
|
"minecraft"
|
|
];
|
|
config' = {
|
|
my.hm.home.packages = [
|
|
(pkgs.hmcl.overrideAttrs {
|
|
postFixup = ''
|
|
substituteInPlace $out/share/applications/HMCL.desktop --replace-fail 'Exec=hmcl' 'Exec=sh -c "cd ~/.local/share/hmcl; hmcl"'
|
|
'';
|
|
})
|
|
];
|
|
|
|
my.persist.homeDirs = [
|
|
".minecraft"
|
|
".local/share/hmcl"
|
|
];
|
|
};
|
|
}
|