{"id":30651181,"url":"https://github.com/mattzink/arch-wsl","last_synced_at":"2025-08-31T06:12:44.992Z","repository":{"id":276209373,"uuid":"928582481","full_name":"mattzink/arch-wsl","owner":"mattzink","description":"Arch Linux on WSL","archived":false,"fork":false,"pushed_at":"2025-02-18T01:53:52.000Z","size":95,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T02:38:23.516Z","etag":null,"topics":["arch-linux","archlinux","wsl","wsl2"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattzink.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-06T21:44:29.000Z","updated_at":"2025-02-18T01:53:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"acb2d5cb-b25a-4796-9afc-c6fa9e17c14e","html_url":"https://github.com/mattzink/arch-wsl","commit_stats":null,"previous_names":["mattzink/arch-wsl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mattzink/arch-wsl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattzink%2Farch-wsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattzink%2Farch-wsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattzink%2Farch-wsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattzink%2Farch-wsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattzink","download_url":"https://codeload.github.com/mattzink/arch-wsl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattzink%2Farch-wsl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272944306,"owners_count":25019514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arch-linux","archlinux","wsl","wsl2"],"created_at":"2025-08-31T06:02:58.315Z","updated_at":"2025-08-31T06:12:44.983Z","avatar_url":"https://github.com/mattzink.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![ConsolePic](arch-wsl.jpg)\r\n\r\n# Arch Linux on WSL\r\nPoweshell script I use to build an Arch Linux WSL 2 distribution from scratch.\r\n\r\nConfigures:\r\n- Latest minimal Arch kernel-less distro\r\n- System locale\r\n- Non-root user with password-less sudo\r\n- systemd\r\n- yay package manager with package caching disabled\r\n- fastfetch w/ sixel logo (Requires Windows Terminal to see)\r\n- oh-my-posh BASH prompt\r\n\r\n## Usage\r\n\r\n1. Ensure WSL is configured correctly\r\n    - Use the latest WSL version (`wsl --update`)\r\n    - For systemd to work correctly, legacy [cgroups v1 must be disabled ](https://github.com/spurin/wsl-cgroupsv2/blob/main/README.md)\r\n    - Use the newer `Mirrored` networking mode (Not `NAT`) to access WSL services across your LAN\r\n\r\n    Therefore, the contents of your `$HOME/.wslconfig` file should include:\r\n    ```ini\r\n    [wsl2]\r\n    kernelCommandLine = cgroup_no_v1=all systemd.unified_cgroup_hierarchy=1\r\n    networkingMode=mirrored\r\n    ```\r\n\r\n2. For proper glyph support, configure your terminal to use a [Nerd Font](https://www.nerdfonts.com/font-downloads). I like `CaskaydiaCove Nerd Font`.\r\n\r\n2. Unzip the [archive file](https://github.com/mattzink/arch-wsl/archive/refs/heads/main.zip) from this repo\r\n\r\n3. From a Powershell prompt, run `create-arch-distro.ps1` (see [the script](create-arch-distro.ps1) for all supported parameters)\r\n\r\n    ```pwsh\r\n    .\\create-arch-distro.ps1 -DistroName myarch -Force\r\n    ```\r\n\r\n4. If successfull, then you should be able run the distro\r\n\r\n    ```pwsh\r\n    wsl -d myarch\r\n    ```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattzink%2Farch-wsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattzink%2Farch-wsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattzink%2Farch-wsl/lists"}