| 15 Feb 2025 |
nzbr (they/it) | https://github.com/nix-community/NixOS-WSL/releases/tag/2411.6.0 | 00:03:17 |
| 18 Feb 2025 |
sustainedrelease | why am I getting "network is unreachable" when trying to do anything with IPv6 addresses? I even manually set networking.enableIPv6 = true; although it was not set to false | 03:12:44 |
sustainedrelease | ipv6 is turned on in Windows 11 | 03:21:39 |
sustainedrelease |  Download image.png | 03:21:40 |
sustainedrelease | I can ping IPv6 addresses with powershell. | 03:28:25 |
sustainedrelease | I can only connect to my VPS with IPv6, so help would be appreciated. | 03:28:57 |
sustainedrelease | for what it's worth, IPv6 seems broken in ubuntu as well. I'm looking into IPv6 issues with WSL2... | 03:44:08 |
sustainedrelease | the solution was to enable mirrored networking in a file called .wslconfig in my Windows home directory | 03:49:27 |
nzbr (they/it) | 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 |
balanced_design | 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 |
balanced_design | On a different topic, my own question. https://nix-community.github.io/NixOS-WSL/how-to/nix-flakes.html Mentions to "First add a nixos-wsl input, then add nixos-wsl.nixosModules.default to your nixos configuration." I assume by "nixos configuration" it means configuration.nix. But how exactly do I add nixos-wsl.nixosModules.default to it. Say to the base configuration.nix that comes with nixOS WSL of:
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
# NixOS-WSL specific options are documented on the NixOS-WSL repository:
# https://github.com/nix-community/NixOS-WSL
{ config, lib, pkgs, ... }:
{
imports = [
# include NixOS-WSL modules
<nixos-wsl/modules>
nixos-wsl.nixosModules.default
];
wsl.enable = true;
wsl.defaultUser = "nixos";
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
}
Ive googled a bunch and used the current best coding AI Claude 3.7 sonnet with no luck.
| 07:26:15 |
balanced_design | 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 |
K900 | The default configuration should just work | 07:34:41 |
K900 | You don't need to add anything | 07:34:46 |
K900 | And don't use word vomit machines, they don't understand Nix or anything else really | 07:35:01 |
balanced_design | I just try to avoid being a burden on others. I try to avoid using their time. | 11:35:04 |
balanced_design | 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 |
balanced_design | * 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 |
balanced_design | * 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 |
K900 | Why do you need a flake.nix in the first place? | 11:36:55 |
balanced_design | 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 |
K900 | That's definitely not the case | 11:39:49 |
K900 | Anything you can do with flakes you can also do without flakes | 11:39:57 |
K900 | Flakes may make some things more convenient, like adding external dependencies | 11:40:14 |
K900 | But I would not recommend starting with them | 11:40:19 |
K900 | Until you're at least somewhat familiar with Nix the language and the NixOS way of doing things | 11:40:34 |
K900 | Because they complicate control flow significantly | 11:40:41 |
balanced_design | 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 |
balanced_design | The architecture I work on is already insanely complicated. | 11:42:42 |
balanced_design | With large VPS program flow diagrams and all. | 11:43:06 |