add wsl config

This commit is contained in:
2026-05-01 14:44:28 -05:00
parent fe112cb380
commit 31d59f89a9
3 changed files with 125 additions and 1 deletions
+15 -1
View File
@@ -28,6 +28,10 @@
url = "github:nix-community/disko/latest";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-wsl = {
url = "github:nix-community/NixOS-WSL/main";
inputs.nixpkgs.follows = "nixpkgs";
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.3";
inputs.nixpkgs.follows = "nixpkgs";
@@ -63,6 +67,7 @@
nixpkgs-unstable,
nix-darwin,
nix-homebrew,
nixos-wsl,
...
} @ inputs: let
systems = {
@@ -119,7 +124,16 @@
inputs.disko.nixosModules.disko
];
};
};
wsl = nixpkgs.lib.nixosSystem {
system = systems.x86_64;
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
modules = [
./hosts/nixos/wsl/configuration.nix
nixos-wsl.nixosModules.default
inputs.home-manager.nixosModules.default
];
};
};
darwinConfigurations = {
cen-it-07 = nix-darwin.lib.darwinSystem {
system = systems.darwin;