# My Workspace Crashed Due To Changes In dev. Nix

**URL:** <https://community.firebasestudio.dev/t/my-workspace-crashed-due-to-changes-in-dev-nix/11726>\
**Category:** Previews\
**Created:** [May 6, 2025, 4:27pm UTC](https://community.firebasestudio.dev/t/my-workspace-crashed-due-to-changes-in-dev-nix/11726 "2025-05-06T16:27:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayushprtp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ayushprtp/32/6045_2.png) [@Ayushprtp](https://community.firebasestudio.dev/u/Ayushprtp)\
**Post date:** [May 6, 2025, 4:27pm UTC](https://community.firebasestudio.dev/t/my-workspace-crashed-due-to-changes-in-dev-nix/11726/1 "2025-05-06T16:27:06Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/idxcommunity/original/2X/f/f0680413183d2a6279db767be43c41c5c4318981.png)

I want it to available asap or i need backup

My Deadline Is TOmmorow Evening,i Need it back its too important for me try , i am stuck hai laoding screen from last 30 minutes fix it sir

> **[Sign in - Google Accounts](https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fstudio.firebase.google.com%2Fpikanda-80779411&followup=https%3A%2F%2Fstudio.firebase.google.com%2Fpikanda-80779411&ifkv=ASKV5Mhc49s3ZeNCJLWOcGuvty-zXhgBGFQx4as9vJqP2FK-9UztAEab-Vnj2ldOofZSEKaIP0AeUQ&passive=1209600&flowName=GlifWebSignIn&flowEntry=ServiceLogin&dsh=S-1123219022%3A1746548827279074)**

---

<div class="post-metadata">

**Author:** ![Ayushprtp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ayushprtp/32/6045_2.png) [@Ayushprtp](https://community.firebasestudio.dev/u/Ayushprtp)\
**Post date:** [May 6, 2025, 4:32pm UTC](https://community.firebasestudio.dev/t/my-workspace-crashed-due-to-changes-in-dev-nix/11726/2 "2025-05-06T16:32:00Z")

</div>

{ pkgs, … }: {

# Which nixpkgs channel to use.

channel = “stable-24.05”; # or “unstable”

# Use [NixOS Search](https://search.nixos.org/packages) to find packages

packages = [  
pkgs.jdk17  
pkgs.unzip  
pkgs.sudo  
pkgs.screenfetch  
# pkgs.cocoapods  
pkgs.systemd  
];

# Sets environment variables in the workspace

env = { };  
idx = {  
# Search for the extensions you want on [https://open-vsx.org/](https://open-vsx.org/) and use “publisher.id”  
extensions = [  
“Dart-Code.flutter”  
“Dart-Code.dart-code”  
“Github.vscode-github-actions”  
“Github.github-vscode-theme”  
“Gruntfuggly.todo-tree”  
“aaron-bond.better-comments”  
“usernamehw.errorlens”  
“vscode.image-preview”  
“Nash.awesome-flutter-snippets”

```
];
workspace = {
  # Runs when a workspace is first created with this `dev.nix` file
  onCreate = {
    build-flutter = ''
      cd /home/user/myapp/android

      ./gradlew \
        --parallel \
        -Pverbose=true \
        -Ptarget-platform=android-x86 \
        -Ptarget=/home/user/myapp/lib/main.dart \
        -Pbase-application-name=android.app.Application \
        -Pdart-defines=RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC85NzU1MDkwN2I3MGY0ZjNiMzI4YjZjMTYwMGRmMjFmYWMxYTE4ODlhLw== \
        -Pdart-obfuscation=false \
        -Ptrack-widget-creation=true \
        -Ptree-shake-icons=false \
        -Pfilesystem-scheme=org-dartlang-root \
        assembleDebug

      # TODO: Execute web build in debug mode.
      # flutter run does this transparently either way
      # https://github.com/flutter/flutter/issues/96283#issuecomment-1144750411
      # flutter build web --profile --dart-define=Dart2jsOptimization=O0
    '';
  };

  # To run something each time the workspace is (re)started, use the `onStart` hook
};
# Enable previews and customize configuration
previews = {
  enable = true;
  previews = {
    # web = {
    # command = ["flutter" "run" "--machine" "-d" "web-server" "--web-hostname" "0.0.0.0" "--web-port" "$PORT"];
    # manager = "flutter";
    # };
    android = {
      command = ["flutter" "run" "--machine" "-d" "android" "-d" "emulator-5554"];
      manager = "flutter";
    };
};

```

};  
};  
}

---

<div class="post-metadata">

**Author:** ![Ayushprtp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ayushprtp/32/6045_2.png) [@Ayushprtp](https://community.firebasestudio.dev/u/Ayushprtp)\
**Post date:** [May 6, 2025, 4:38pm UTC](https://community.firebasestudio.dev/t/my-workspace-crashed-due-to-changes-in-dev-nix/11726/3 "2025-05-06T16:38:12Z")

</div>

Should i Use Reset My workspace..?

But I Have Installed And Authorized some the important thing in /home folder of VM it will gone…? my project will deleted..? or it will just restart my VM?

---

<div class="post-metadata">

**Author:** ![Ayushprtp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ayushprtp/32/6045_2.png) [@Ayushprtp](https://community.firebasestudio.dev/u/Ayushprtp)\
**Post date:** [May 6, 2025, 5:12pm UTC](https://community.firebasestudio.dev/t/my-workspace-crashed-due-to-changes-in-dev-nix/11726/4 "2025-05-06T17:12:29Z")

</div>

after reset it will assign me a different VM with \*0G default storage but i have 115 GB on My Current VM so i dont want to reset sir,is there nay other way..?or i should reset and developer have to increase my storage space to atleast 115 G

@Kirupa  
@Kirupa  
@Kirupa  
@Kirupa  
@Kirupa  
@Kirupa  
@Kirupa  
@Kirupa

---

<div class="post-metadata">

**Author:** ![kirupa](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/kirupa/32/4_2.png) [@kirupa](https://community.firebasestudio.dev/u/kirupa)\
**Post date:** [May 6, 2025, 5:38pm UTC](https://community.firebasestudio.dev/t/my-workspace-crashed-due-to-changes-in-dev-nix/11726/5 "2025-05-06T17:38:32Z")

</div>

Create a new project, copy the dev.nix from that project, paste the contents into your 115GB VM, and restart.

---

<div class="post-metadata">

**Author:** ![Ayushprtp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ayushprtp/32/6045_2.png) [@Ayushprtp](https://community.firebasestudio.dev/u/Ayushprtp)\
**Post date:** [May 6, 2025, 6:00pm UTC](https://community.firebasestudio.dev/t/my-workspace-crashed-due-to-changes-in-dev-nix/11726/6 "2025-05-06T18:00:24Z")

</div>

i didn’t understand sir what you meant can you kindly provide me some details about htis and i am not able open old dev.nix i just copied dev.nix before it went out of service

---

<div class="post-metadata">

**Author:** ![Ayushprtp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ayushprtp/32/6045_2.png) [@Ayushprtp](https://community.firebasestudio.dev/u/Ayushprtp)\
**Post date:** [May 6, 2025, 6:02pm UTC](https://community.firebasestudio.dev/t/my-workspace-crashed-due-to-changes-in-dev-nix/11726/7 "2025-05-06T18:02:19Z")

</div>

creating new project i will get 115 GB storage automatically…?  
and i have to copy only dev.nix ? but i am not able to open my existing workspcae how could i replace?

---

<div class="post-metadata">

**Author:** ![Ayushprtp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ayushprtp/32/6045_2.png) [@Ayushprtp](https://community.firebasestudio.dev/u/Ayushprtp)\
**Post date:** [May 6, 2025, 6:13pm UTC](https://community.firebasestudio.dev/t/my-workspace-crashed-due-to-changes-in-dev-nix/11726/8 "2025-05-06T18:13:43Z")

</div>

i got option of recovery mode then i edited dev.nix to original one and rebuilded enicironment ,thanks but what if i need custom environment?

---

<div class="post-metadata">

**Author:** ![Ayushprtp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ayushprtp/32/6045_2.png) [@Ayushprtp](https://community.firebasestudio.dev/u/Ayushprtp)\
**Post date:** [May 8, 2025, 10:21pm UTC](https://community.firebasestudio.dev/t/my-workspace-crashed-due-to-changes-in-dev-nix/11726/9 "2025-05-08T22:21:13Z")

</div>

@kirupa Again Got Atucked Have Setting Your workspace this time i haven’t even touched dev.nix automatically i got pop up your workspace is dissconeted refesh browser to connect and i refreshed then i got stuck at my old issue its again happend after almost 2day ,i used workspace for 38 hours straight is there something time limit?
