How do I get a WSL compatible tar file out of a existing flake-enabled NixOS configuration? #195
Unanswered
volkswagenfeature
asked this question in
Q&A
Replies: 1 comment
-
You can take a look at configuration.nix and copy the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I'm trying to port over my configs from my laptop to a WSL environment. You can see my up-to-date laptop config here or my attempt to make WSL work here. I'm still learning Nix, so I'm not sure how to call your code from my own.
If you'll pardon the broad question, What modifcations need to be made to a
flake.nix
to let me produce a tarball of the whole system, with all the stuff I added included? I did get a successful build by adding NixOS-WSL to my flake inputs, and adding the linedefaultPackage."${system}" = inputs.NixOS-WSL.nixosConfigurations.mysystem.config.system.build.installer;
but as you might have expected, this only spits back the "empty", default environment.Beta Was this translation helpful? Give feedback.
All reactions