Skip to content

Instantly share code, notes, and snippets.

@isabelroses
Last active November 13, 2025 09:12
Show Gist options
  • Select an option

  • Save isabelroses/018f5aa07131de8c43a1d0b7ec0c6916 to your computer and use it in GitHub Desktop.

Select an option

Save isabelroses/018f5aa07131de8c43a1d0b7ec0c6916 to your computer and use it in GitHub Desktop.
{ config, lib, pkgs, ... }:
{
imports = [ <nixos-wsl/modules> ];
wsl.enable = true;
wsl.defaultUser = "isabel";
networking.hostName = "valkyrie";
environment.systemPackages = [
pkgs.git
];
nix = {
package = pkgs.lix;
settings = {
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "@wheel" ];
substituters = [ "https://cache.tgirl.cloud/tgirlcloud" ];
trusted-public-keys = [ "tgirlcloud:EaOlHrpuOI6Zwmir3/MzqS9uA0Xn3gYr15/k/v0HIPo=" ];
};
};
system.stateVersion = "25.05";
}
@isabelroses
Copy link
Author

isabelroses commented Nov 13, 2025

  1. run this in the wsl instance
sudo nix-channel --remove nixos
sudo nix-channel --add https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz nixos
sudo nix-channel --update
sudo nixos-rebuild boot
  1. after the rebuild is complete run this from the windows side
wsl -t NixOS
wsl -d NixOS --user root exit
wsl -t NixOS

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