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;
};
outputs = { self, nixpkgs, nixos-wsl }@attrs: {
outputs = { self, nixpkgs, nixos-wsl }: {
nixosConfigurations.catacomb = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [ ./machine/catacomb ];
@ -15,8 +15,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 = {