NixOS on WSL | 342 Members | |
| https://github.com/nix-community/NixOS-WSL | 59 Servers |
| Sender | Message | Time |
|---|---|---|
| 18 Feb 2023 | ||
| I am continuing my adventures in nixos wsl and discovered something that I want to get your advice on: This command seems to always work in PowerShell: On the other hand, when I try and run with a specified user, like Is that expected behaviour, or does it point at something being wrong with my setup?
[i97henka@nixos:/mnt/c/Users/i97he]$ | 16:35:44 | |
| Use native systemd | 16:36:08 | |
| Don't use not native systemd | 16:36:20 | |
| * I am continuing my adventures in nixos wsl and discovered something that I want to get your advice on: This command seems to always work in PowerShell: On the other hand, when I try and run with a specified user, like Is that expected behaviour, or does it point at something being wrong with my setup?
| 16:37:20 | |
| * I am continuing my adventures in nixos wsl and discovered something that I want to get your advice on: This command seems to always work in PowerShell: On the other hand, when I try and run with a specified user, like Is that expected behaviour, or does it point at something being wrong with my setup?
| 16:38:02 | |
| Can we please just drop syschdemd already, I genuinely don't care about the three people stuck on <=20H2 | 16:38:39 | |
| Thanks for reply @K900 - am I on the right track here you think? - https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/ | 16:40:37 | |
| No | 16:40:49 | |
Just set wsl.nativeSystemd = true in your config, rebuild, then restart your WSL VM | 16:41:33 | |
| That works - thanks a lot 👍️🙂👍️ 🙏 | 16:45:05 | |
| 17:08:58 | ||
| 19:25:40 | ||
| 19 Feb 2023 | ||
| 09:10:35 | ||
| 23:22:46 | ||
| 20 Feb 2023 | ||
| Download configuration.nix | 20:45:12 | |
| I am trying to change my nixos-wsl configuration.nix to add nixvim - as described here: https://github.com/pta2002/nixvim#without-flakes what confuses me is that in the nixvim example, lib is an input, whereas in my configuration.nix it is not. As a starting point, I just added lib as an input, and that worked, but when I tried the import it failed sayint there is no lib.fetchGit function. Attached my current non-working nixos-wsl configuration.nix | 20:45:18 | |
| * I am trying to change my nixos-wsl configuration.nix to add nixvim - as described here: https://github.com/pta2002/nixvim#without-flakes what confuses me is that in the nixvim example, lib is an input, whereas in my configuration.nix it is not. As a starting point, I just added lib as an input, and that worked, but when I tried the import it failed saying there is no lib.fetchGit function. Attached my current non-working nixos-wsl configuration.nix | 20:45:44 | |
It should probably be builtins.fetchGit or pkgs.fetchGit | 20:45:46 | |
Not lib.fetchGit | 20:45:49 | |
Thank you K900 , builtins is better - however, I get this error message now instead:error: executing 'git': No such file or directorywarning: could not read HEAD ref from repo at 'https://github.com/pta2002/nixvim', using 'master'error: executing 'git': No such file or directoryerror: program 'git' failed with exit code 1 | 20:48:52 | |
Do you have git installed? | 20:49:04 | |
which: no git in ... 🤣 | 20:49:47 | |
| let me sort that out | 20:49:56 | |
| New configuration.nix below.
| 20:56:55 | |
| Download configuration.nix | 20:57:03 | |
| I tried with the --show-trace as suggested, but I can't make much out of that stack trace. What I suspect but can't say for sure is that the inclusion in the list on row 11 in my configuration.nix throws it off, but I don't understand why that happens. | 20:58:44 | |
In reply to @i97henka:matrix.orgThat's an issue with nixvim | 20:59:59 | |
| You need to actually enable it for it to work | 21:00:07 | |
I'll fix the docs to change lib to builtins though | 21:00:26 | |
| thank you Pedro Alves ⭐️ | 21:01:47 | |