From ae9b39d2b8a10a5b8a886a9a78e5270f0250689d Mon Sep 17 00:00:00 2001 From: lightly-toasted Date: Sun, 21 Sep 2025 09:15:04 +0000 Subject: [PATCH] feat: add wsl host configurations --- flake.nix | 4 ++++ hosts/wsl/configuration.nix | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 hosts/wsl/configuration.nix 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" ]; +}