!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

338 Members
https://github.com/nix-community/NixOS-WSL57 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
18 Feb 2025
@sustainedrelease:matrix.orgsustainedreleasefor what it's worth, IPv6 seems broken in ubuntu as well. I'm looking into IPv6 issues with WSL2...03:44:08
@sustainedrelease:matrix.orgsustainedrelease the solution was to enable mirrored networking in a file called .wslconfig in my Windows home directory 03:49:27
@nzbr:nzbr.deArson CopperflameYeah, the default network mode of WSL still doesn't support IPv6 at all. There's nothing we can do about it from the distro side09:15:32
28 Feb 2025
@balanced_design:matrix.orgbalanced_designtry 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:matrix.orgbalanced_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:matrix.orgbalanced_designIve 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

Show newer messages


Back to Room ListRoom Version: 9