nixos-hardware: use the flake instead of a path

This commit is contained in:
Benedikt Tissot 2021-01-19 10:45:06 +01:00
parent 78adcf86dc
commit 12188b6ec3
2 changed files with 3 additions and 3 deletions

View file

@ -141,11 +141,11 @@ flk iso
## Hardware Specific Profile for a Single Host ## Hardware Specific Profile for a Single Host
Find out the fitting [nixos-hardware profile](https://github.com/NixOS/nixos-hardware#list-of-profiles) path for the hardware of your host and add it to the configuration. Find out the fitting [nixos-hardware profile](https://github.com/NixOS/nixos-hardware#list-of-profiles) path for the hardware of your host, then find the corresponding modules in the [flake](https://github.com/NixOS/nixos-hardware/blob/master/flake.nix) and addit to the configuration.
For example for a Dell XPS 13 9370 the host configuration would contain: For example for a Dell XPS 13 9370 the host configuration would contain:
```nix ```nix
{ {
imports = [ "${hardwareModulesPath}/dell/xps/13-9370" ... ]; imports = [ hardware.dell-xps-13-9370 ... ];
... ...
} }
``` ```

View file

@ -25,7 +25,7 @@ let
specialArgs = specialArgs =
{ {
unstableModulesPath = "${master}/nixos/modules"; unstableModulesPath = "${master}/nixos/modules";
hardwareModulesPath = "${nixos-hardware}"; hardware = nixos-hardware.nixosModules;
}; };
modules = modules =