!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

347 Members
https://github.com/nix-community/NixOS-WSL61 Servers

Load older messages


SenderMessageTime
1 Feb 2023
@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
@sandro:supersandro.deSandro 🐧we can point a channel to a branch13:10:21
@k900:0upti.meK900We can point nix-channel directly at a github tarball URL13:10:21
@nzbr:nzbr.deArson Copperflame
In reply to @sandro:supersandro.de
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 not
You can still update without the launcher knowing
13:10:57
@sandro:supersandro.deSandro 🐧and just putting instructions on the update subcommand is a lot more convenient 13:11:01
@nzbr:nzbr.deArson CopperflameThe Launcher could check for updates against the GitHub API instead of relying on its own version number13:12:13
@nzbr:nzbr.deArson Copperflame And we definitely need to come up with a better mechanism to get the version into the module. Adding a file in CI doesn't feel particularly nice, but I had no better idea, because nix strips the .git directory from the input 13:13:33
@nzbr:nzbr.deArson CopperflameAs it github gives us a nice json of all releases here https://api.github.com/repos/nix-community/nixos-wsl/releases13:18:41
@nzbr:nzbr.deArson Copperflame * Github gives us a nice json of all releases here https://api.github.com/repos/nix-community/nixos-wsl/releases13:19:01
@nzbr:nzbr.deArson Copperflame * GitHub gives us a nice json of all releases here https://api.github.com/repos/nix-community/nixos-wsl/releases13:19:07
@sandro:supersandro.deSandro 🐧
In reply to @nzbr:nzbr.de
And we definitely need to come up with a better mechanism to get the version into the module. Adding a file in CI doesn't feel particularly nice, but I had no better idea, because nix strips the .git directory from the input
or we just copy lib.version from nixpkgs
13:31:07
@sandro:supersandro.deSandro 🐧and sell it as the module for version X of NixOS13:31:15
@nzbr:nzbr.deArson CopperflameBut if we ever want to release between two versions, we'd have no chance to do that Does nix give us a timestamp to the commit?13:35:30
@sandro:supersandro.deSandro 🐧
In reply to @nzbr:nzbr.de
The Launcher could check for updates against the GitHub API instead of relying on its own version number
I really don't want to have the extra work for that in the launcher.
13:41:47
@sandro:supersandro.deSandro 🐧
In reply to @nzbr:nzbr.de
But if we ever want to release between two versions, we'd have no chance to do that
Does nix give us a timestamp to the commit?
then we need a version file or manually tag the archive or push it to a branch from where nix downloads things
13:42:32
@nzbr:nzbr.deArson Copperflame
In reply to @sandro:supersandro.de
I really don't want to have the extra work for that in the launcher.
that's less complex than what it does right now
13:44:17
@sandro:supersandro.deSandro 🐧hmmm, well at least something, I guess13:56:37
@nzbr:nzbr.deArson Copperflame

What I want to happen is basically the following: We publish a release on GitHub. The Launcher knows that through some method. It then checks whether or not the user has that commit or a newer one installed and if not, prompts them to update. nixos update is a convenience function that does that for them, provided they are using the default configuration layout

channels might be a way to achieve this, but I don't really know how they work, because I'm using flakes for everything

14:04:15
@k900:0upti.meK900We can just do a version compare14:05:24
@k900:0upti.meK900 So e.g. if we have a channel pointing at the 22.11.1 tag, we can just compare the tag to known latest 14:06:16
@k900:0upti.meK900And update if needed 14:06:25
@sandro:supersandro.deSandro 🐧 channels would work like sudo nix-channel --add https://github.com/SuperSandro2000/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz nixpkg 14:06:42
@nzbr:nzbr.deArson Copperflame
In reply to @k900:0upti.me
So e.g. if we have a channel pointing at the 22.11.1 tag, we can just compare the tag to known latest
Oh yeah right, we could just parse the version from the channel URL
14:09:41
@k900:0upti.meK900Also if we're doing that, we might want to follow home-manager14:11:00
@k900:0upti.meK900And have a separate stable branch 14:11:05

Show newer messages


Back to Room ListRoom Version: 9