1
1
Fork 0

Move nixos-wsl module import to flake def

This avoids having to use specialArgs to pass it down to the configuration file to import there
This commit is contained in:
Tim Van Baak 2022-12-15 19:50:49 -08:00
parent 20e269c89d
commit f892f1a557
2 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
nixos-wsl.url = github:nix-community/NixOS-WSL; nixos-wsl.url = github:nix-community/NixOS-WSL;
}; };
outputs = { self, nixpkgs, nixos-wsl }@attrs: { outputs = { self, nixpkgs, nixos-wsl }: {
nixosConfigurations.catacomb = nixpkgs.lib.nixosSystem { nixosConfigurations.catacomb = nixpkgs.lib.nixosSystem {
system = "aarch64-linux"; system = "aarch64-linux";
modules = [ ./machine/catacomb ]; modules = [ ./machine/catacomb ];
@ -15,8 +15,10 @@
}; };
nixosConfigurations.stagirite = nixpkgs.lib.nixosSystem { nixosConfigurations.stagirite = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = attrs; modules = [
modules = [ ./machine/stagirite ]; nixos-wsl.nixosModules.wsl
./machine/stagirite
];
}; };
}; };
} }

View File

@ -1,4 +1,4 @@
{ lib, pkgs, config, modulesPath, nixos-wsl, ... }: { lib, pkgs, config, modulesPath, ... }:
with lib; with lib;
let let
@ -7,8 +7,6 @@ in
{ {
imports = [ imports = [
"${modulesPath}/profiles/minimal.nix" "${modulesPath}/profiles/minimal.nix"
nixos-wsl.nixosModules.wsl
]; ];
wsl = { wsl = {