!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

330 Members
https://github.com/nix-community/NixOS-WSL54 Servers

Load older messages


SenderMessageTime
9 Mar 2024
@k900:0upti.meK900Yeah I have no idea what's going on there, and you shouldn't need a hardware-configuration.nix at all06:59:08
@jee_mj:matrix.orgmjthen it'll get built by nixos06:59:12
@k900:0upti.meK900Just use the tarball and start with the default config in the tarball06:59:27
@jee_mj:matrix.orgmjI'm just getting this error mainly nixos@URIEL-WSL  /m/c/U/mj  code . 17:59:20 /home/nixos/.vscode-server/bin/1e790d77f81672c49be070e04474901747115651/bin/remote-cli/code: line 12: /home/nixos/.vscode-server/bin/1e790d77f81672c49be070e04474901747115651/node: cannot execute: required file not found06:59:38
@k900:0upti.meK900That's an unrelated issue which has to do with how NixOS work07:00:06
@k900:0upti.meK900* That's an unrelated issue which has to do with how NixOS works07:00:07
@jee_mj:matrix.orgmj

I have this configuration file now

───────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /etc/nixos/configuration.nix
───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ { config, lib, pkgs, ... }:
   2   │
   3   │ {
   4   │   imports = [
   5   │
   6   │     /etc/nixos/.nix/system.nix
   7   │     /etc/nixos/.nix/environment.nix
   8   │     <nixos-wsl/modules>
   9   │   ];
  10   │
  11   │   wsl = {
  12   │     enable = true;
  13   │     defaultUser = "nixos";
  14   │     startMenuLaunchers = true;
  15   │
  16   │     # docker.enable = true;
  17   │   };
  18   │
  19   │   system.stateVersion = "23.11";
  20   │ }
───────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 
07:00:23
@k900:0upti.meK900OK yes that looks a lot more normal07:00:49
@jee_mj:matrix.orgmjis there documentation of the options anywhere?"07:00:53
@jee_mj:matrix.orgmj e.g. wsl.automountPath 07:01:12
@k900:0upti.meK900https://nix-community.github.io/NixOS-WSL/07:01:16
@k900:0upti.meK900Literally linked in the readme07:01:19
@jee_mj:matrix.orgmj

what's this option for?

wsl.usbip.enable

Whether to enable USB/IP integration.

Type: boolean

Default: false

Example: true

Declared by:

    <nixos-wsl>/modules/usbip.nix

07:16:57
@jee_mj:matrix.orgmj *

what's this option for?

wsl.usbip.enable
Whether to enable USB/IP integration.
Type: boolean
Default: false
Example: true
Declared by:
    <nixos-wsl>/modules/usbip.nix

07:17:09
@k900:0upti.meK900For forwarding USB devices directly to the VM07:19:17
@ktemkin:katesiria.org@ktemkin:katesiria.orgyou can pair it with this usbipd-win (https://github.com/dorssel/usbipd-win) and it'll let you forward USB devices as mentioned in microsoft's documentation: https://learn.microsoft.com/en-us/windows/wsl/connect-usb07:50:19
@k900:0upti.meK900It's such a weird solution too07:50:44
@k900:0upti.meK900Like07:50:46
@k900:0upti.meK900It's literally a Hyper-V VM07:50:50
@ktemkin:katesiria.org@ktemkin:katesiria.orgAFAIK, WSL VMs don't have the full hyper-V device model07:51:38
@ktemkin:katesiria.org@ktemkin:katesiria.orgIIRC, they're designed to use virtio devices rather than using the kernel's hyper-v devices, and also lack the typical emulation layer that's often used to surface devices on a virtual EHCI/XHCI bus07:53:29
@jee_mj:matrix.orgmjits so that the host doesn't have to know what is going on with the client and the USB07:53:35
10 Mar 2024
@clabb:matrix.orgclabb joined the room.03:01:56
@farcaller:matrix.orgfarcaller joined the room.20:26:56
12 Mar 2024
@kedde:matrix.orgkedde joined the room.10:28:19
@xmeatballx:matrix.orgxmeatballx joined the room.17:07:16
@xmeatballx:matrix.orgxmeatballxRedacted or Malformed Event17:31:06
13 Mar 2024
@ktemkin:katesiria.org@ktemkin:katesiria.org changed their display name from Kate Temkin to [K]ate Temkin.02:56:13
14 Mar 2024
@federicodschonborn:matrix.org@federicodschonborn:matrix.org left the room.02:03:37
@rostby:matrix.orgRostby joined the room.08:11:48

Show newer messages


Back to Room ListRoom Version: 9