!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

282 Members
https://github.com/nix-community/NixOS-WSL55 Servers

Load older messages


SenderMessageTime
15 Jun 2024
@toddt:matrix.orgTodd Thompsonok, will comment out for now08:50:33
@k900:0upti.meK900 The only way to restart it properly is to wsl --shutdown externallyn 08:50:54
@k900:0upti.meK900* The only way to restart it properly is to wsl --shutdown externallynl08:51:00
@k900:0upti.meK900* The only way to restart it properly is to wsl --shutdown externally08:51:04
@k900:0upti.meK900Because that will also clear the state tracking on the Windows side 08:51:20
@k900:0upti.meK900And the "system" distro 08:51:34
@toddt:matrix.orgTodd Thompsoneverything seems to be working now, thanks08:55:01
@toddt:matrix.orgTodd Thompsonmy goal is to use nixos-wsl for local development and then nixos or ubuntu+nix-shell for VPS for prototype/staging. is the "nixos" way to do things to always use shell envs for each app/service or should I globally install some devops tools as well08:59:30
@toddt:matrix.orgTodd ThompsonI'd like to follow the ethos of nixos as much as possible but not sure about the 3 different use cases09:00:47
@k900:0upti.meK900Generally yes, do one shell per project 09:21:01
@toddt:matrix.orgTodd Thompson
In reply to @k900:0upti.me
Generally yes, do one shell per project
thanks
09:30:40
@toddt:matrix.orgTodd ThompsonI'm following https://zero-to-nix.com/ hope it's a good starting place09:31:39
@nzbr:nzbr.denzbr (they/it)
In reply to@k900:0upti.me
nzbr (they/it) can you do the thing?
I had been gone for the last week, sorry. I'll see if there's anything missing before that
16:23:10
@nzbr:nzbr.denzbr (they/it)If I haven't missed anything urgent, we can probably have a new release once this one is merged: https://github.com/nix-community/NixOS-WSL/pull/49617:36:28
16 Jun 2024
@k900:0upti.meK900
In reply to @nzbr:nzbr.de
If I haven't missed anything urgent, we can probably have a new release once this one is merged: https://github.com/nix-community/NixOS-WSL/pull/496
Does that actually happen?
05:36:05
@k900:0upti.meK900(and how?)05:36:07
@andreas_dev:matrix.organdreas_devI'm not sure if that's due to a crash, but I have had it happen that a failed logger initialization causes NixOS WSL to break, as in you can't enter the shell (but luckily you can with the recovery shell)07:43:39
@andreas_dev:matrix.organdreas_dev
In reply to @nzbr:nzbr.de
the copying happens in an activation script, so it should happen every time the distro boots or you switch to a new generation. Therefore, if you have a recent-enough version of the nixos-wsl modules the launchers should be copied from your user profile as well. You can check if they are present in /usr/share/applications. I don't know with what logic wsl will re-scan those directories though, or if there is any way of triggering a scan manually
Only the NixOS manual and fish shell appears in there
09:05:05
@andreas_dev:matrix.organdreas_dev1000052272.jpg
Download 1000052272.jpg
09:39:11
@andreas_dev:matrix.organdreas_devI wanted to test a theory, however this error occurred: https://pastebin.com/dxNjuJnZ This is my hardware-configuration in the image above (pastebin cloudflare blocked me so I couldn't make another one 09:39:28
@andreas_dev:matrix.organdreas_devApparently the nixos-rebuild did work, and my theory has been proven thus far: adding programs to the user in configuration.nix works and shows in the menu, but when performing this through home-manager, it won't be copied to /usr/share/applications and show in the menu. Should I file a bug report for this?09:40:49
@k900:0upti.meK900It's not really something we can fix 10:26:34
@k900:0upti.meK900Unless10:26:36
@k900:0upti.meK900Unless we do something really cursed 10:26:42
@andreas_dev:matrix.organdreas_dev
In reply to @k900:0upti.me
Unless we do something really cursed
Now I'm intrigued..
10:29:03
@k900:0upti.meK900We can copy the shortcuts from a systemd user service10:29:21
@k900:0upti.meK900Instead of the activation script10:29:28
@k900:0upti.meK900Then it'll inherit the user's XDG_DATA_DIRS10:29:35
@k900:0upti.meK900And we can chmod /usr/share/applications to your user10:30:05
@k900:0upti.meK900So it actually works10:30:09

Show newer messages


Back to Room ListRoom Version: 9