!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

342 Members
https://github.com/nix-community/NixOS-WSL59 Servers

Load older messages


SenderMessageTime
1 Feb 2023
@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
@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 pulled from git12:52:55
@nzbr:nzbr.deArson CopperflameUsing flakes by default would make some people really upset, that's why we don't do that12:55:30
@k900:0upti.meK900The launcher isn't coupled to the modules in any way though?12:55:40
@k900:0upti.meK900At least currently12:55:43
@k900:0upti.meK900Like, you can update the launcher and not update the modules, or vice versa, and it'll be fine12:55:55
@nzbr:nzbr.deArson CopperflameYes, that will work12:56:07
@k900:0upti.meK900So it feels weird to me to specifically prompt people to update when the launcher updates12:56:21
@nzbr:nzbr.deArson CopperflameYou can also use the updater without the launcher12:56:29
@nzbr:nzbr.deArson Copperflame They are coupled in a way: The launcher comes with the installer tarball bundled. So whenever there's a new release, we need to push a new launcher to the store 12:57:52
@nzbr:nzbr.deArson Copperflame And both carry the same version number. The launcher checks the output of nixos-wsl-version and compares that to its own version number. If the module comes from anywhere except /etc/nixos/nixos-wsl, it would be DEV_BUILD and no update prompt would be triggered (because it can't know about /etc/nixos/nixos-wsl/VERSION) 13:01:35
@sandro:supersandro.deSandro 🐧
In reply to @nzbr:nzbr.de

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

Why do we even do this?

Can't we just fetch the source from github? With flakes or just fetch* something?

13:04:31
@sandro:supersandro.deSandro 🐧thats a lot easier and saves us lots of trouble 13:04:47
@nzbr:nzbr.deArson Copperflame I mean, we could just replace the whole /etc/nixos/nixos-wsl directory with a default.nix that runs fetchGit 13:06:48
@nzbr:nzbr.deArson CopperflameAnd then the update Macha ism would just overwrite that file13:07:08
@nzbr:nzbr.deArson Copperflame* And then the update Machanism would just overwrite that file13:07:15
@k900:0upti.meK900Maybe we should make it a channel13:08:33
@k900:0upti.meK900And then the updater will just need to switch the channel URL13:08:40
@sandro:supersandro.deSandro 🐧we just should not push updates through the microsoft store. It takes unnecessarily long and I don't want to depend on MS' update policies and what not13:09:37
@sandro:supersandro.deSandro 🐧it would be a lot easier if we just bootstrap nixos with the store app and then only update it to have an up to date base system13:10:04
@nzbr:nzbr.deArson CopperflameWouldn't we need additional infrastructure for that though? Also: We only need to serve one specific commit per release13:10:08
@k900:0upti.meK900No13:10:12

Show newer messages


Back to Room ListRoom Version: 9