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:
parent
af6bb08705
commit
b6f3abccbe
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user