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 committed by Jaculabilis
parent af6bb08705
commit b6f3abccbe
2 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@
nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, nixos-wsl }@attrs: {
outputs = { self, nixpkgs, nixos-wsl }: {
nixosConfigurations.catacomb = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [ ./machine/catacomb ];
@ -17,8 +17,10 @@
};
nixosConfigurations.stagirite = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
modules = [ ./machine/stagirite ];
modules = [
nixos-wsl.nixosModules.wsl
./machine/stagirite
];
};
};
}

View File

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