fix(hmcl): wrap hmcl to fix config file persistence
This commit is contained in:
@@ -14,15 +14,17 @@ lib.my.makeSwitch {
|
|||||||
];
|
];
|
||||||
config' = {
|
config' = {
|
||||||
my.home.home.packages = [
|
my.home.home.packages = [
|
||||||
pkgs.hmcl
|
(pkgs.hmcl.overrideAttrs {
|
||||||
|
postFixup = ''
|
||||||
|
substituteInPlace $out/share/applications/HMCL.desktop --replace-fail 'Exec=hmcl' 'Exec=sh -c "cd ~/.local/share/hmcl; hmcl"'
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
pkgs.xmcl
|
||||||
];
|
];
|
||||||
|
|
||||||
my.persist.homeDirs = [
|
my.persist.homeDirs = [
|
||||||
".minecraft"
|
".minecraft"
|
||||||
".local/share/hmcl"
|
".local/share/hmcl"
|
||||||
];
|
];
|
||||||
my.persist.homeFiles = [
|
|
||||||
".hmcl.json"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user