home(minecraft): add check to persistence

This commit is contained in:
514fpv 2024-01-05 22:26:34 +08:00
parent d92ecf02bc
commit 9c40fdc7ed
Signed by: koishi
SSH key fingerprint: SHA256:VkIdW3jUIiqecV2WNAje2fGU5lEhN0XZ58DN0NS4pv0

View file

@ -14,6 +14,6 @@ in {
{ passthrough.minecraft = cfg; }
];
users.home.persist.directories = [ ".local/share/PrismLauncher" ];
users.home.persist.directories = mkIf cfg.enable [ ".local/share/PrismLauncher" ];
};
}