Persist sm64ex save data.

This commit is contained in:
Tom Alexander 2025-01-25 20:47:48 -05:00
parent 60452b0aeb
commit 67ad4e2dff
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -19,10 +19,9 @@
config = lib.mkIf config.me.sm64ex.enable ( config = lib.mkIf config.me.sm64ex.enable (
lib.mkMerge [ lib.mkMerge [
{
allowedUnfree = [ "sm64ex" ];
}
(lib.mkIf config.me.graphical { (lib.mkIf config.me.graphical {
allowedUnfree = [ "sm64ex" ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
sm64ex sm64ex
]; ];
@ -34,6 +33,22 @@
# }; # };
# }) # })
# ]; # ];
# TODO perhaps install ~/.local/share/sm64ex/sm64config.txt
environment.persistence."/persist" = lib.mkIf (!config.me.buildingIso) {
hideMounts = true;
users.talexander = {
directories = [
{
directory = ".local/share/sm64ex";
user = "talexander";
group = "talexander";
mode = "0755";
}
];
};
};
}) })
] ]
); );