!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

340 Members
https://github.com/nix-community/NixOS-WSL57 Servers

Load older messages


SenderMessageTime
1 Feb 2023
@k900:0upti.meK900Or a Rust thingy08:58:20
@nzbr:nzbr.deArson CopperflameThe problem is that this is extraInit, so that won't work. Python's got its own problems. I've come to like powershell, but then I had to pass commands (as strings) from powershell to bash (for the tests so pwsh -> docker or wsl -> syschdemd -> bash) and the gates of hell opened before me08:59:01
@k900:0upti.meK900Haha09:00:18
@k900:0upti.meK900 eval $(${shim}/bin/split-path) goes brr 09:00:34
@k900:0upti.meK900(actually doing that btw)09:00:42
@k900:0upti.meK900https://github.com/nix-community/NixOS-WSL/pull/21409:18:14
@k900:0upti.meK900Actually did that btw09:18:17
@sandro:supersandro.deSandro 🐧Should we ask https://github.com/msteen/nixos-vscode-server to adopt into nixos-wsl?09:58:49
@sandro:supersandro.deSandro 🐧
In reply to @nzbr:nzbr.de
While you're at it: command grep should probably be something like ${pkgs.gnugrep}/bin/grep to avoid unfortunate surprises on exotic configs
aka mine 😆
09:59:03
@sandro:supersandro.deSandro 🐧
In reply to @nzbr:nzbr.de
The problem is that this is extraInit, so that won't work. Python's got its own problems. I've come to like powershell, but then I had to pass commands (as strings) from powershell to bash (for the tests so pwsh -> docker or wsl -> syschdemd -> bash) and the gates of hell opened before me
na, no more powershell. I want to be able to fix my things.
09:59:44
@nzbr:nzbr.deArson Copperflame
In reply to @sandro:supersandro.de
Should we ask https://github.com/msteen/nixos-vscode-server to adopt into nixos-wsl?
I'm running that and it works fine. In theory, we could just import that flake
10:00:04
@sandro:supersandro.deSandro 🐧Same, just was thinking if this would make things easier for us10:02:07
@sandro:supersandro.deSandro 🐧I am not sure if we should do the updater in the distro launcher10:17:38
@sandro:supersandro.deSandro 🐧IMO it probably opens a new area of problems10:17:56
@nzbr:nzbr.deArson Copperflame It's a script at a fixed location inside the tarball (/nix/wsl-installer/updater.sh currently), that the launcher runs. It's possible to run the updater without the launcher and the release notes will describe both options 10:20:11
@nzbr:nzbr.deArson Copperflameimage.png
Download image.png
10:42:11
@nzbr:nzbr.deArson CopperflameThe magic 22.11 progress-bar just turned green. Now is your chance to come up with possible release names (or emergency blockers that should be in the release)10:43:03
@nzbr:nzbr.deArson Copperflame * The magic 22.11 progress-bar just turned green. Now is your chance to come up with possible release names (or emergency fixes that should be in the release)10:43:19
@sandro:supersandro.deSandro 🐧 Why are we not using a standard path like something in /nix/var/nix/profiles/system/? Then we would not need to link that ourself. 12:42:19
@sandro:supersandro.deSandro 🐧I mean the updater in itself is a bad idea. NixOS can be configured in so many different ways especially with flakes that it will break for a good chunk of people and I don't want to accumulate all kinds of workarounds for that.12:43:20
@k900:0upti.meK900When would the updater be triggered anyway?12:44:23
@nzbr:nzbr.deArson Copperflame When you run the script or nixos.exe update 12:44:49
@k900:0upti.meK900Maybe we should just make it link to some upgrade guide12:44:52
@k900:0upti.meK900So it's not required for anything external?12:45:04
@k900:0upti.meK900Then I'd say just drop it honestly12:45:12
@k900:0upti.meK900It's way too difficult to get correctly in the general case12:45:21
@nzbr:nzbr.deArson Copperflame

It will obviously never work if you import the module yourself, all it does is replace the files in /etc/nixos/nixos-wsl and offer you to run nixos-rebuild switch(if it doesn't detect that you aren't using /etc/nixos/configuration.nix)

If your config comes from anywhere else, it does absolutely nothing. I don't see a way how you could break your system with it in a way that you couldn't by putting the files there manually

12:50:13
@k900:0upti.meK900Maybe we should just default to generating the system config with flakes or even something like niv12:51:43
@k900:0upti.meK900So there's an obvious way to update all the inputs12:51:51
@nzbr:nzbr.deArson Copperflame The idea is that when the MS Store (once we're on there) pushes a new version of the launcher to your device, it prompts you to run nixos update to use the version of our module that comes bundled with the launcher. It will however only do that, if NixOS-WSL-version outputs a version string, which it won't do if the version of the module you are running was pulleys from git 12:52:45

Show newer messages


Back to Room ListRoom Version: 9