diff options
author | axtlos <axtlos@fedowora5.speedport.ip> | 2022-09-03 18:25:48 +0200 |
---|---|---|
committer | axtlos <axtlos@fedowora5.speedport.ip> | 2022-09-03 18:25:48 +0200 |
commit | b6e3c139a14e9169f5f59590c375fa2729d00a21 (patch) | |
tree | 5c9ab32fbc0fdb077ffdf9332ac4b3266e4b9318 /org.nixos.nix/run.sh | |
parent | 1c924550726ef6cb2f91eb788183f31658264919 (diff) | |
download | flatpaks-b6e3c139a14e9169f5f59590c375fa2729d00a21.tar.gz flatpaks-b6e3c139a14e9169f5f59590c375fa2729d00a21.tar.bz2 |
Add nix flatpak
This was pushed from this flatpak with nix-shell :troll:
Diffstat (limited to 'org.nixos.nix/run.sh')
-rw-r--r-- | org.nixos.nix/run.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/org.nixos.nix/run.sh b/org.nixos.nix/run.sh new file mode 100644 index 0000000..bdb8220 --- /dev/null +++ b/org.nixos.nix/run.sh @@ -0,0 +1,15 @@ +#!/usr/bin/bash +if [[ ! -d $HOME/.var/app/org.nixos.nix/data/nix ]]; then + pushd $HOME + mkdir nix-tmp + cp /app/bin/install.sh . + bash ./install.sh + cp -r /nix $HOME/.var/app/org.nixos.nix/data/nix + cp -r $HOME/.nix* $HOME/.var/app/org.nixos.nix/data/. +else + cp -r $HOME/.var/app/org.nixos.nix/data/nix /nix + cp -r $HOME/.var/app/org.nixos.nix/data/.nix* $HOME/. +fi + +exec "$@" +cp -r /nix $HOME/.var/app/org.nixos.nix/data/nix
\ No newline at end of file |