Fresheyeball / bloom-flake

0 stars 1 forks source link

its cool! however doesn't remember preferences on quit. #1

Open nixinator opened 1 year ago

nixinator commented 1 year ago

maybe it's can't write to the nix store?

same with saving and loading games.. ?????

nixinator commented 1 year ago

yep, got it ...

[nix-shell:~/.config/gzdoom]$ pwd
/home/mrblobby/.config/gzdoom

seem everytime nix run github:Fresheyeball/bloom-flake

is run, it deletes and overwrites everything in the folder. thus the configuration and save games are never saved.

nixinator commented 1 year ago

Yeah , a classic case of state and idempotent..

install seems to work well, but if the wads change , they might not get updated. However everything works like this.. but not sure if the correct solution.


    defaultApp.${system} = with pkgs; writeShellApplication
        { name = "doom-mod.sh";
          runtimeInputs = [
            gzdoom
          ];
          text = ''
            #rm -rf ~/.config/gzdoom
            #mkdir -p ~/.config/gzdoom
            install -d ~/.config/gzdoom/ 
            install -D ${freedoom}/* ~/.config/gzdoom/
            gzdoom ${self.outputs.packages.${system}.bloom}/Bloom.pk3
          '';
        };