Skip to content

Instantly share code, notes, and snippets.

@ringosham
ringosham / lxgc.c
Created December 17, 2020 23:23
Manually clear WSL memory
#include <stdio.h>
// Must be run as root
// To build:
// cc lxgc.c -o lxgc
int write(const char *path) {
FILE *fp;
fp = fopen(path, "w");
int response = fputs("1", fp);

Guix on WSL2

(updated versions of this document, plus more, live here)

This will show you how to get Guix running on WSL2.
We're going to go as "minimal" as possible, without starting off one of the readily available WSL2 distros.
Parts of this guide should help with understanding how to set up any custom distro on WSL, not just Guix.

Disclaimer: I'm a Guix nOOb! (hence going through the trouble of installing it on WSL2)