diff --git a/flake.nix b/flake.nix index 741e9bb..afe8396 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,10 @@ url = "github:nix-community/lanzaboote/v0.4.2"; inputs.nixpkgs.follows = "nixpkgs"; }; + nixos-wsl = { + url = "github:nix-community/NixOS-WSL/main"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { self, nixpkgs, home-manager, ... } @ inputs: diff --git a/hosts/wsl/configuration.nix b/hosts/wsl/configuration.nix new file mode 100644 index 0000000..dd38f2c --- /dev/null +++ b/hosts/wsl/configuration.nix @@ -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" ]; +}