| 9 Mar 2024 |
K900 | Yeah I have no idea what's going on there, and you shouldn't need a hardware-configuration.nix at all | 06:59:08 |
mj | then it'll get built by nixos | 06:59:12 |
K900 | Just use the tarball and start with the default config in the tarball | 06:59:27 |
mj | I'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 found | 06:59:38 |
K900 | That's an unrelated issue which has to do with how NixOS work | 07:00:06 |
K900 | * That's an unrelated issue which has to do with how NixOS works | 07:00:07 |
mj | 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 | OK yes that looks a lot more normal | 07:00:49 |
mj | is there documentation of the options anywhere?" | 07:00:53 |
mj | e.g. wsl.automountPath | 07:01:12 |
K900 | https://nix-community.github.io/NixOS-WSL/ | 07:01:16 |
K900 | Literally linked in the readme | 07:01:19 |
mj | 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 |
mj | * 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 | For forwarding USB devices directly to the VM | 07:19:17 |
@ktemkin:katesiria.org | you 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-usb | 07:50:19 |
K900 | It's such a weird solution too | 07:50:44 |
K900 | Like | 07:50:46 |
K900 | It's literally a Hyper-V VM | 07:50:50 |
@ktemkin:katesiria.org | AFAIK, WSL VMs don't have the full hyper-V device model | 07:51:38 |
@ktemkin:katesiria.org | IIRC, 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 bus | 07:53:29 |
mj | its so that the host doesn't have to know what is going on with the client and the USB | 07:53:35 |
| 10 Mar 2024 |
| clabb joined the room. | 03:01:56 |
| farcaller joined the room. | 20:26:56 |
| 12 Mar 2024 |
| kedde joined the room. | 10:28:19 |
| xmeatballx joined the room. | 17:07:16 |
xmeatballx | Redacted or Malformed Event | 17:31:06 |
| 13 Mar 2024 |
| @ktemkin:katesiria.org changed their display name from Kate Temkin to [K]ate Temkin. | 02:56:13 |
| 14 Mar 2024 |
| @federicodschonborn:matrix.org left the room. | 02:03:37 |
| Rostby joined the room. | 08:11:48 |