NixOS on WSL | 334 Members | |
| https://github.com/nix-community/NixOS-WSL | 55 Servers |
| Sender | Message | Time |
|---|---|---|
| 25 Mar 2024 | ||
| i made sure to edit server-env-setup with: PATH=$PATH:/run/current-system/sw/bin/ | 12:17:32 | |
| oh wait i should restart wsl | 12:18:22 | |
| Nope, same thing. Also, this error never got resolved: Unable to detect if server is already installed: Error: Failed to probe if server is already installed: code: Failed to probe if server is already installed: code: 127, /nix/store/41l3q7yi1ab5s1830k2pi023s5c5vhrl-bash-interactive-5.2p26/bin/sh: line 1: uname: command not found | 12:19:42 | |
| Ugh, i have to go now but il be back in an hour. But this is progress lol. | 12:20:53 | |
| okay so I was being dumb. my configuration.nix was not correct. But now im getting undefined 'inputs' again. Ughhh | 13:18:14 | |
| im reading everywhere that u use "specialArgs = { inherit inputs; };" to get that to work but thats already in the flake :/ | 13:39:11 | |
You need to use nixos-rebuild --flake /etc/nixos switch | 13:40:53 | |
| Otherwise it uses your existing configuration.nix | 13:41:00 | |
| It didnt work :/ | 13:42:35 | |
| What exactly "didn't work"? | 13:42:46 | |
| The command u provided. inputs still undefined and points to it in the configuration.nix | 13:43:28 | |
| it wont rebuild | 13:43:41 | |
| Post the exact output | 13:43:49 | |
| And the exact contents of your flake.nix and configuration.nix | 13:43:59 | |
configuration.nix:
flake:
| 13:45:42 | |
| and i got the flake file right next to configuration.nix | 13:46:24 | |
Your configuration.nix looks very incomplete | 13:46:37 | |
| Though actually that may be enough | 13:46:54 | |
If you just replace the first { with { inputs, ... }: { | 13:47:06 | |
| Yeah i was just following: https://github.com/nix-community/NixOS-WSL/issues/294#issuecomment-2009075533 | 13:47:19 | |
| omg, something different happened. now pkgs is undefined | 13:48:09 | |
| Oh | 13:48:15 | |
You need { inputs, pkgs, ... }: { | 13:48:25 | |
| I had to read the stateVersion too, but looks like its working! fingers crossed. Thanks btw! u have been very helpful :) | 13:50:45 | |
| * I had to re-add the stateVersion too, but looks like its working! fingers crossed. Thanks btw! u have been very helpful :) | 13:50:52 | |
| No wayyy vscode also works now hahahaha | 13:51:52 | |
| ITs aliiiiiiiiiiiiive | 13:51:57 | |
| Idk how their configuration.nix was working, it felt like it was using function parameters in a function without parameters :/ | 13:52:59 | |
| * Idk how their configuration.nix was working, it felt like i was using function parameters in a function without parameters :/ | 13:53:10 | |
| 28 Mar 2024 | ||
| did something break in regards to wayland? i cant launch nheko under WSL anymore | 15:19:16 | |