!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
8 Dec 2023
@jdemille:tchncs.deJulia DeMille joined the room.15:25:04
10 Dec 2023
@/yvan:matrix.orgYvan Sraka changed their display name from Yvan Sraka to Yvan Sraka (old).10:55:58
14 Dec 2023
@man2dev:fedora.im@man2dev:fedora.im joined the room.09:13:40
15 Dec 2023
@seapat:matrix.orgseapat joined the room.10:44:28
@janik0:matrix.org@janik0:matrix.org

Does anyone here have experience with running nixos-wsl + wslg + sway? From what I have read I can't use the windows key as a modifier but that's fine. And I got sway running somewhat fine, I'm not able to resize or full screen the window, but no idea if this is a thing that should work, never used wslg or wsl before. And is there some canonical wslg way of making sway start by default, usually on my personal laptop I just have a script that starts sway when I login to tty1 like so:

    loginShellInit = ''
      if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
        exec sway
      fi
    '';
15:44:35
@k900:0upti.meK900I would not recommend trying to run full compositors under WSLg15:45:01
@k900:0upti.meK900It's very much not designed for that15:45:07
@janik0:matrix.org@janik0:matrix.orgso rather just starting kitty and calling it a day? 15:46:35
@janik0:matrix.org@janik0:matrix.org * so rather just start kitty (or other $terminal emulator) and call it a day? 15:46:59
@k900:0upti.meK900Why not just use Windows Terminal?15:47:11
@k900:0upti.meK900(or any other terminal emulator that's native to Windows)15:47:20
@janik0:matrix.org@janik0:matrix.orgbecause I'm very very accustomed to do things in the way I configured them and would like to avoid trying to replicate them in other environments. I'll probably end up using firefox from the wslg thingy because it has th econfig I expect, like a bunch of search engines with the @ modifier, which yes I could export the profile and import it into windows but that's extra steps compared to applying my already existing nixos configuration. 15:50:36
@k900:0upti.meK900Uhh15:50:57
@k900:0upti.meK900Would definitely not recommend doing that15:51:02
@k900:0upti.meK900For the simple reason of WSL not having GPU acceleration15:51:11
@k900:0upti.meK900You will be software rendering EVERYTHING15:51:17
@k900:0upti.meK900Unless you do horrible LD_PRELOAD fuckery and then you'll probably just crash somewhere in dozen instead15:51:31
@janik0:matrix.org@janik0:matrix.org
In reply to @k900:0upti.me
For the simple reason of WSL not having GPU acceleration
I think this should be fine in this particular case, like I understand it's not good but I only use the laptop in docked mode 99% of the time so power draw isn't too much of a concern. It's the company laptop I'm forced to use, and they recently moved me from streaming a vm with vmware-horizon with >1sec input latency that doesn't keep state to a laptop with windows admin permissions where I'm allowed to do whatever in wsl but am not allowed to install any extra windows software because of compliance bs. And windows terminal isn't rendering my prompter properly and the eza output, I guess that's because of missing fonts .
15:59:37
@k900:0upti.meK900It's not really about power usage15:59:55
@k900:0upti.meK900It's just going to be SLOW15:59:59
@k900:0upti.meK900Like you can try16:00:04
@k900:0upti.meK900But it is Not Great16:00:09
@k900:0upti.meK900Mesa 23 should improve things considerably here16:00:15
@k900:0upti.meK900But we don't have it yet16:00:17
@k900:0upti.meK900(/me stares at stdenv)16:00:22
@janik0:matrix.org@janik0:matrix.org
In reply to @k900:0upti.me
It's just going to be SLOW
slow became another meaning after being forced to use a vm that's streamed and that didn't have hardware acceleration for over a year, I also had to use the browser inside the vm which worked fine so.
16:01:47
@janik0:matrix.org@janik0:matrix.org
In reply to @k900:0upti.me
It's just going to be SLOW
* slow became another meaning after being forced to use a vm that's streamed and that didn't have hardware acceleration for over a year, I also had to use the browser inside the vm which worked fine so, like the 1 sec input delay was no joke or exaggeration, sometimes it even input keypresses multiple times.
16:02:45
@janik0:matrix.org@janik0:matrix.org * slow became another meaning after being forced to use a vm that's streamed and that didn't have hardware acceleration for over a year, I also had to use the browser inside the vm which worked fine so. also like the 1 sec input delay was no joke or exaggeration, sometimes it even input keypresses multiple times. 16:03:10
@ultra:beeper.comAlex S changed their profile picture.21:02:36
16 Dec 2023
@a-kenji:matrix.orgkenji joined the room.13:21:35

Show newer messages


Back to Room ListRoom Version: 9