NixOS on WSL | 338 Members | |
| https://github.com/nix-community/NixOS-WSL | 57 Servers |
| Sender | Message | Time |
|---|---|---|
| 18 Feb 2025 | ||
| I can only connect to my VPS with IPv6, so help would be appreciated. | 03:28:57 | |
| for what it's worth, IPv6 seems broken in ubuntu as well. I'm looking into IPv6 issues with WSL2... | 03:44:08 | |
the solution was to enable mirrored networking in a file called .wslconfig in my Windows home directory | 03:49:27 | |
| Yeah, the default network mode of WSL still doesn't support IPv6 at all. There's nothing we can do about it from the distro side | 09:15:32 | |
| 28 Feb 2025 | ||
| try setting up tailscale on WSL and your VPS. It is made to handle things that would otherwise prevent connecting between your devices. It will give you a virtual IPv4 address you can send packets to that will go to your VPS via IPv6 via tailscale noticing a request to a special IP and handling the networking. | 07:21:01 | |
| On a different topic, my own question.
Ive googled a bunch and used the current best coding AI Claude 3.7 sonnet with no luck. | 07:26:15 | |
| Ive been spending many hours trying to get nixrebuild-switch working with a configuration.nix and flake.nix in the home directory. Ill eventually get there. NixOS has comparatively so little info online, docs or otherwise. | 07:28:58 | |
| The default configuration should just work | 07:34:41 | |
| You don't need to add anything | 07:34:46 | |
| And don't use word vomit machines, they don't understand Nix or anything else really | 07:35:01 | |
| I just try to avoid being a burden on others. I try to avoid using their time. | 11:35:04 | |
| Its possible my nix rebuild switch function is wrong I couldnt find conisistent info on how to rebuild switch with a configuration.nix and flake.nix in the home directory. Can I ask what that function would be? | 11:35:09 | |
| * Its possible my nix rebuild switch function is wrong I couldnt find conisistent info on how to rebuild switch with a configuration.nix and flake.nix in the home/nixos directory. Can I ask what that function would be? | 11:35:52 | |
| * Its possible my nix rebuild switch command is wrong I couldnt find conisistent info on how to rebuild switch with a configuration.nix and flake.nix in the home/nixos directory. Can I ask what that command would be? | 11:36:20 | |
| Why do you need a flake.nix in the first place? | 11:36:55 | |
| Because when ever Im trying to figure out how to do something I seem to come accross ways to do it with flakes decently more commonly. And because as far as I understand they allow doing many things that configuration.nix files dont that are important to what Im doing. I cant remember exactly, I have it noted down. I could always be wrong, Nix hasnt been that easy to find info on comparative to other things. | 11:39:32 | |
| That's definitely not the case | 11:39:49 | |
| Anything you can do with flakes you can also do without flakes | 11:39:57 | |
| Flakes may make some things more convenient, like adding external dependencies | 11:40:14 | |
| But I would not recommend starting with them | 11:40:19 | |
| Until you're at least somewhat familiar with Nix the language and the NixOS way of doing things | 11:40:34 | |
| Because they complicate control flow significantly | 11:40:41 | |
| Oh. Please, I dont want to learn an intermediate thing. I can understand very compilicated things I just need somewhere there are resources. | 11:42:09 | |
| The architecture I work on is already insanely complicated. | 11:42:42 | |
| With large VPS program flow diagrams and all. | 11:43:06 | |
| Also I found a really nice artical on flakes, so Im alot less worried then I otherwise would be: https://vtimofeenko.com/posts/practical-nix-flake-anatomy-a-guided-tour-of-flake.nix/ | 11:45:57 | |
| * Oh. Please, I dont want to learn an intermediate thing. I can understand very compilicated things I just need somewhere there are resources. | 11:48:01 | |
| In that case I'd recommend reading https://jade.fyi/blog/flakes-arent-real/ | 11:48:33 | |
| Thank you so much for the resource | 11:49:46 | |
| Do you have what the command would be? If not I can look through this is case it answers and otherwise ask elsewhere. | 11:50:34 | |