feat: add wsl host configurations

This commit is contained in:
lightly-toasted 2025-09-21 09:15:04 +00:00
parent 6e88dd69a8
commit ae9b39d2b8
2 changed files with 19 additions and 0 deletions

View file

@ -22,6 +22,10 @@
url = "github:nix-community/lanzaboote/v0.4.2"; url = "github:nix-community/lanzaboote/v0.4.2";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nixos-wsl = {
url = "github:nix-community/NixOS-WSL/main";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { self, nixpkgs, home-manager, ... } @ inputs: outputs = { self, nixpkgs, home-manager, ... } @ inputs:

View file

@ -0,0 +1,15 @@
{ inputs, ... }:
{
imports = [
inputs.nixos-wsl.nixosModules.default
];
wsl.enable = true;
wsl.defaultUser = "toast";
networking.hostName = "wsl";
system.stateVersion = "25.05";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
}