Add WSL2 target for builds

This commit is contained in:
Greg Hellings
2022-12-28 15:41:09 -06:00
parent b1e7d952d0
commit 6e7f5ae446
3 changed files with 75 additions and 2 deletions
+10 -1
View File
@@ -16,11 +16,15 @@
url = "github:lnl7/nix-darwin/master";
inputs.nixpkgs.follows = "nixunstable";
};
wsl = {
url = "github:nix-community/NixOS-WSL";
inputs.nixpkgs.follows = "nixunstable";
};
nurpkgs.url = "github:nix-community/NUR";
ffmac.url = "github:bandithedoge/nixpkgs-firefox-darwin";
};
outputs = {stable, nixunstable, agenix, home-manager, nurpkgs, self, ...}@inputs:
outputs = {stable, nixunstable, agenix, home-manager, nurpkgs, self, wsl, ...}@inputs:
let
local_overlay = import ./overlays;
overlays = [
@@ -42,6 +46,7 @@
modules = [
{ nixpkgs.overlays = overlays; }
agenix.nixosModule
wsl.nixosModules.wsl
./modules-all
./modules-linux
./hosts/${name}
@@ -76,6 +81,10 @@
"linode" = machine { name = "linode"; };
"lappy" = machine { name = "lappy"; };
"iso" = machine { name = "iso"; };
# nix build '.#nixosConfigurations.wsl.config.system.build.installer'
"wsl" = machine { name = "wsl"; };
# nix build '.#nixosConfigurations.wsl-aarch.config.system.build.installer'
"wsl-aarch" = machine { name = "wsl"; system = "aarch64-linux"; };
};
darwinConfigurations =