!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
25 Nov 2022
@k900:0upti.meK900
  users.users.k900.shell = let
    wrapper = pkgs.writeShellScriptBin "shell-wrapper" ''
      . /etc/set-environment
      exec ${pkgs.zsh}/bin/zsh "$@"
    '';
  in lib.mkForce "${wrapper}/bin/shell-wrapper";
18:08:47
@k900:0upti.meK900This works.18:08:49
@k900:0upti.meK900I hate it.18:08:51
@k900:0upti.meK900https://github.com/nix-community/NixOS-WSL/pull/17018:10:26
@k900:0upti.meK900This turned out to be unrelated but still is more correct18:10:34
@k900:0upti.meK900 Also nzbr (they/it) while you're here pls merge https://github.com/nix-community/NixOS-WSL/pull/169 18:10:53
@nzbr:nzbr.deArson Copperflame Can you have a look at #161? I want to have the tests merged before the other PRs - they can't do native systemd yet, but we can at least prevent breaking things that already work 18:13:14
@k900:0upti.meK900https://github.com/microsoft/WSL/issues/9213 18:14:57
@k900:0upti.meK900Opened18:14:58
@k900:0upti.meK900
In reply to @nzbr:nzbr.de
Can you have a look at #161? I want to have the tests merged before the other PRs - they can't do native systemd yet, but we can at least prevent breaking things that already work
My PowerShell is terrible but seems OK to me
18:15:19
@nzbr:nzbr.deArson Copperflame I mean, the tests work xD 18:16:48
@k900:0upti.meK900Then just merge them?18:18:05
@k900:0upti.meK900If it breaks, we can always fix it18:18:15
@nzbr:nzbr.deArson Copperflame Merged! Please rebase/merge main into your PRs K900 Sandro 🐧 psvo 18:22:06
@k900:0upti.meK900Done18:22:35
@k900:0upti.meK900Also filed an issue on our side: https://github.com/nix-community/NixOS-WSL/issues/17118:22:41
@k900:0upti.meK900Oh no I found another bug18:23:57
@k900:0upti.meK900The installer does not work AT ALL with native-systemd18:24:24
@k900:0upti.meK900Because we're propagating /etc/wsl.conf into it18:25:10
@k900:0upti.meK900And there's obviously no systemd in the installer18:25:17
@nzbr:nzbr.deArson CopperflameI know, that's why I skipped making tests for it for now18:25:17
@nzbr:nzbr.deArson CopperflameWe need to include /etc/wsl.conf for the initial boot to work correctly18:25:36
@k900:0upti.meK900Maybe it should be a different wsl.conf then18:25:55
@nzbr:nzbr.deArson CopperflameI'd suggest we run the installer script through the systemd wrapper and include that in the installer tarball18:25:57
@k900:0upti.meK900That would need us to stick the entire systemd closure into the initial tarball18:26:22
@k900:0upti.meK900Which is oof18:26:25
@k900:0upti.meK900What's the smallest wsl.conf we can have that still works?18:26:47
@k900:0upti.meK900 Maybe we should just have the installer read -p at the end and die horribly 18:27:10
@k900:0upti.meK900And then make you restart the VM18:27:16
@nzbr:nzbr.deArson CopperflameWe could make a second binary that execs the systemd wrapper once it's unpacked18:28:34

Show newer messages


Back to Room ListRoom Version: 9