Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Windows Subsystem for Linux #63049

Merged
merged 0 commits into from Jun 15, 2020
Merged

[WIP] Windows Subsystem for Linux #63049

merged 0 commits into from Jun 15, 2020

Conversation

ghuntley
Copy link
Member

@ghuntley ghuntley commented Jun 13, 2019

backstory

See #30391

technical information

WSL2 is different to WSL1, see https://docs.microsoft.com/en-us/windows/wsl/wsl2-install for specifics but overall does not change how operating system distributions should package, register and ship their distribution into the app store.

See below for reference implementations for WSL1 which also work for WSL2:

contacts at microsoft

There's certain discussions I'll be able to have with Microsoft that others won't (NDA info stuffs) but for everything else these two folks are our contacts:

next steps

  • Registered an account for the NixOS Foundation in the MSFT app store and reserve "NixOS" as an app name.
  • Identify people to help out (comment on this PR and I'll grant you push access)
  • WSL does not support systemd without https://github.com/arkane-systems/genie so we need to check it out.
  • Create expression that generates an installation of nixos (without grub, containermode?) that produces a install.tar.gz
  • Import https://github.com/microsoft/WSL-DistroLauncher, customize it and consume install.tar.gz.
  • Iterate until it works on a Windows 10 machine
  • Send the appx to Microsoft (speak with Geoff) for pre-check verification.
  • How do we make this repeatable ala @GrahamcOfBorg? WSL-DistroLauncher requires windows.
  • Obtain appstore credentials from @edolstra
  • Automatic (or manual via shell script) uploading of the generated appx to the Windows Store

@Renha
Copy link

Renha commented Jun 24, 2019

What kind of people are required for helping out?

@Rizary
Copy link
Contributor

Rizary commented Jun 26, 2019

I can't wait to have NixOS on my WSL2. I hope I can contribute more to this.

@ghuntley
Copy link
Member Author

@Rizary @Renha it would be rad to have you help out. Are you able to take on:

Create expression that generates an installation of nixos (without systemd, without grub, containermode?) that produces a install.tar.gz and/or investigate https://github.com/arkane-systems/genie

tmux
vim_configurable
wget
zip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This list seems rather opinionated. Should the default packages installed in NixOS not already enough?

Copy link
Member Author

@ghuntley ghuntley Jun 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed they are, that's what I need to be personally productive. Before this merges we should change it ship the default packages.

@aanderse
Copy link
Member

@ghuntley how is this going? Did @vaibhavsagar and you connect on this after discussing during officehours?

@Rizary
Copy link
Contributor

Rizary commented Sep 2, 2019

@Rizary @Renha it would be rad to have you help out. Are you able to take on:

Create expression that generates an installation of nixos (without systemd, without grub, containermode?) that produces a install.tar.gz and/or investigate https://github.com/arkane-systems/genie

Hi, I will try to look into this after GSoC ended. One thing that I understand is that NixOS is integrated quite tightly with systemd on many levels. I think I am gonna look https://github.com/cloudwatt/nix-container-images as an example.

@Mic92
Copy link
Member

Mic92 commented Sep 6, 2019

Why would you want to get rid of systemd? Is WSL2 not now a proper linux kernel that should support it? You can get rid of the bootloader easily: boot.loader.initScript.enable = true; will create a /sbin/init script that can be executed.

@stale
Copy link

stale bot commented Jun 1, 2020

Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the
    related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse. 3. Ask on the #nixos channel on
    irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 1, 2020
@Mic92
Copy link
Member

Mic92 commented Jun 1, 2020

Should we close this one and hope somebody else picks it up?

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 1, 2020
@Hoverbear
Copy link
Member

I was trying https://github.com/Trundle/NixOS-WSL and it worked ok, maybe it could be cleaned up?

@samueldr
Copy link
Member

What? no?!

@Mic92
Copy link
Member

Mic92 commented Jun 15, 2020

@samueldr I don't think you merged this PR. This sometime happen when people force push.

@samueldr
Copy link
Member

(Yeah, I know, I've seen that happen to other people before, but it still is annoying!)

@ghuntley
Copy link
Member Author

(Yeah, I know, I've seen that happen to other people before, but it still is annoying!)

(・o・) Apologies for confusion. I've deleted the WSL branch and am starting again from master as quite a bit of time has elapsed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants