add wsl config
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user