~/nixos-config/flake.nix : (参考:一个简单的 Flake 起步模板) {inputs={nixpkgs.url="github:NixOS/nixpkgs/nixos-unstable";# 新加入 nixos-wslnixos-wsl={url="github:nix-community/NixOS-WSL";inputs.nixpkgs.follows="nixpkgs";};outputs=inputs@{self,nixpkgs,nixos-wsl,# 新加入nixos-hardwar...
nixos-wsl-vscode A nixos configuration that works with VS Code in WSL Usage: As a NixOS module in your flake { inputs.nixos-wsl-vscode.url = "github:Atry/nixos-wsl-vscode"; outputs = { self, nixpkgs, nixos-wsl-vscode }: { nixosConfigurations.yourhostname = nixpkgs.lib.nixosSyst...
VERSION backport nixos-wsl-version Dec 17, 2022 default.nix move build-tarball to a flake module Feb 1, 2022 flake.lock chore(deps): lock file maintenance (nix-community#417) Feb 12, 2024 flake.nix fix: set state version when building tarballs (nix-community#419) Feb 13, 2024 Repository...
Hey, would like to see NixOS provided as a distribution for WSL. It is already working fine by using https://github.com/nix-community/NixOS-WSL If it's possible to publish it on Microsoft Store, I'm willing to help out. Downstream issue:...
vscode-remote-wsl-nixos Now that WSL 2 has been released from Windows 2004 update, NixOS can be run in Windows machine 🎉 Since NixOS differs from other Linux in some aspects, it has some difficulties working with Visual Studio Code Remote-WSL extension. This repository quickly fixes proble...
When attempting to register NixOS, the launcher should check if WSL is installed instead of failing with a generic error
Bug description Currently Nix environment variables do not take effect for wsl --exec. This problem affects VSCode Remote WSL extension badly because by default it uses wsl --exec to start the code server, which requires nix-ld and NIX_L...
enable = mkEnableOption "support for running NixOS as a WSL distribution"; useWindowsDriver = mkEnableOption "OpenGL driver from the Windows host"; binShPkg = mkOption { type = package; internal = true; @@ -70,7 +71,16 @@ in # WSL does not support virtual consoles console.enable ...
Bug description when trying to run wsl --exec with nixos as my default distro it errors with <3>WSL (16121) ERROR: CreateProcessEntryCommon:577: execvpe emacs failed 2 <3>WSL (16121) ERROR: CreateProcessEntryCommon:586: Create process no...
As per microsoft documentation, there are a lot of WSL configuration knobs you can set. If you use config.wsl.enable however, /etc/wsl.conf becomes a read-only symlink into the store, and there is no module option available to add your own customized options. This is a fairly simply pro...