NixOS on WSL | 330 Members | |
| https://github.com/nix-community/NixOS-WSL | 54 Servers |
| Sender | Message | Time |
|---|---|---|
| 25 Mar 2024 | ||
| Trying to build with the configuration.nix, i get "undefined variable inputs" which is sensible. | 11:49:27 | |
| Oh thats from the flake thing | 11:50:11 | |
| Ah i just put it beside configuration.nix. waiting for it to build now... | 12:01:35 | |
| Well, less errors now but its still complaining about inputs being undefined | 12:03:34 | |
| oh nvm i think i got it.. | 12:11:01 | |
In reply to @peepojuice:matrix.orgFlakes are not a big thing, it's just a way to define channels. People are just sometimes like they change everything, which is not true. | 12:12:40 | |
| yeah I wanted to do my own research later to make my own decision, since it seem a bit controversial, but Im getting annoyed because i see it a lot and im just like "well, how do i do it without flake, lol?" so i think im just gonna cave and join the party. | 12:14:02 | |
| rebuild was a success.. now to try vscode | 12:14:30 | |
| Could not start dynamically linked executable: /home/nixos/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/node [2024-03-25 12:14:46.189] NixOS cannot run dynamically linked executables intended for generic [2024-03-25 12:14:46.189] linux environments out of the box. For more information, see: [2024-03-25 12:14:46.189] https://nix.dev/permalink/stub-ld | 12:15:23 | |
| 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 | |