Skip to content

Commit

Permalink
fix nixos-wsl config
Browse files Browse the repository at this point in the history
  • Loading branch information
0x77dev committed Jan 11, 2025
1 parent 203cfd5 commit d9f65c9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
inputs.nixpkgs.follows = "nixpkgs";
};

# WSL specific inputs
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";

# darwin specific inputs
nix-darwin = {
url = "github:LnL7/nix-darwin";
Expand Down Expand Up @@ -69,7 +72,7 @@
allow-unfree = true;
};

outputs = inputs@{ flake-parts, devenv-root, sops-nix, nix-darwin, nixpkgs, home-manager, nixos-generators, vpn-confinement, ... }:
outputs = inputs@{ flake-parts, devenv-root, sops-nix, nix-darwin, nixpkgs, home-manager, nixos-generators, vpn-confinement, nixos-wsl, ... }:
let
mkHomeConfig = system: username: homeDirectory: home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
Expand Down Expand Up @@ -201,6 +204,11 @@
wsl = mkNixosConfig {
system = "x86_64-linux";
modules = [
nixos-wsl.nixosModules.default
{
system.stateVersion = "24.11";
wsl.enable = true;
}
./systems/nixos/wsl/configuration.nix
];
};
Expand Down

0 comments on commit d9f65c9

Please sign in to comment.