diff --git a/nix/configuration/roles/sm64ex/default.nix b/nix/configuration/roles/sm64ex/default.nix index f8d2404..d8ea66d 100644 --- a/nix/configuration/roles/sm64ex/default.nix +++ b/nix/configuration/roles/sm64ex/default.nix @@ -19,10 +19,9 @@ config = lib.mkIf config.me.sm64ex.enable ( lib.mkMerge [ - { - allowedUnfree = [ "sm64ex" ]; - } (lib.mkIf config.me.graphical { + allowedUnfree = [ "sm64ex" ]; + environment.systemPackages = with pkgs; [ 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"; + } + ]; + }; + }; }) ] );