!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
23 Nov 2023
@daniel573:matrix.orgDaniel Kahlenbergwsl-vpnkit does not seem to work for me, can you help pls ? See https://github.com/nix-community/NixOS-WSL/issues/262#issuecomment-182490331021:32:16
@k900:0upti.meK900Try the new tunneled networking mode instead? 21:33:50
@k900:0upti.meK900 wsl-vpnkit is a giant hack 21:33:55
@daniel573:matrix.orgDaniel KahlenbergThis one: https://learn.microsoft.com/en-us/windows/wsl/networking#dns-tunneling ?21:35:51
@k900:0upti.meK900 That and https://learn.microsoft.com/en-us/windows/wsl/networking#mirrored-mode-networking 21:36:25
@daniel573:matrix.orgDaniel KahlenbergBoth not supported here.21:43:44
@daniel573:matrix.orgDaniel Kahlenberg * Both not supported here. Maybe I try another kernel later ?21:45:49
26 Nov 2023
@rdobre:matrix.orgrdobre joined the room.21:10:14
27 Nov 2023
@ThorHop:matrix.org@ThorHop:matrix.org changed their display name from hopland (nixpkgs-rolling when) to hopland (valorent vicky).14:30:50
30 Nov 2023
@whovian9369:matrix.orgWhovian9369 joined the room.06:31:59
@whovian9369:matrix.orgWhovian9369 Is there a suggested way to update the NixOS-WSL modules in /etc/nixos/nixos-wsl? 06:32:49
@k900:0upti.meK900Generally, switch to using them as a channel06:33:13
@k900:0upti.meK900As we did in recent releases06:33:16
@k900:0upti.meK900 Then you can just nix-channel --update 06:33:21
@whovian9369:matrix.orgWhovian9369Is it documented where to add it as a channel? 😅06:33:59
@k900:0upti.meK900Uhh06:34:42
@whovian9369:matrix.orgWhovian9369What channel that I need to add, I mean06:34:54
@k900:0upti.meK900 Basically just nix-channel --add https://github.com/nix-community/NixOS-WSL/archive/refs/heads/main.tar.gz nixos-wsl 06:35:24
@whovian9369:matrix.orgWhovian9369Cheers!06:35:34
@k900:0upti.meK900 And then replace the import in your config with import <nixos-wsl/modules> 06:35:46
@whovian9369:matrix.orgWhovian9369 As my normal user or as root? (Guessing root since it's for content in /etc/nixos/?) 06:36:00
@whovian9369:matrix.orgWhovian9369Cheers K900!06:36:06
@k900:0upti.meK900Root06:36:11
@whovian9369:matrix.orgWhovian9369 Do I only need to change the import configuration.nix? (This should be my final question, I promise :P) 06:37:11
@k900:0upti.meK900Uhh06:37:18
@k900:0upti.meK900What's in your configuration.nix right now?06:37:26
@whovian9369:matrix.orgWhovian9369
let
  nixos-wsl = import ./nixos-wsl;
in
06:37:35
@whovian9369:matrix.orgWhovian9369
{ lib, pkgs, config, modulesPath, ... }:

with lib;
let
  nixos-wsl = import ./nixos-wsl;
in
{
  imports = [
    "${modulesPath}/profiles/minimal.nix"
    ./packages.nix
    ./users.nix
    nixos-wsl.nixosModules.wsl
  ];

  wsl = {
    enable = true;
    automountPath = "/mnt";
    defaultUser = "whovian";
    startMenuLaunchers = false;
  };

  # Enable nix flakes
  nix.package = pkgs.nixFlakes;
  nix.extraOptions = ''
    experimental-features = nix-command flakes
  '';

  time.timeZone = "America/New_York";

  # Add environment.pathsToLink for auto-completion for system packages (e.g. systemd).
  environment.pathsToLink = [ "/share/zsh" ];

  system.stateVersion = "22.05";
}

06:38:46
@k900:0upti.meK900Hold on06:40:46
@k900:0upti.meK900Oh06:40:48

Show newer messages


Back to Room ListRoom Version: 9