diff options
author | Kai Wohlfahrt <kai@prodo.ai> | 2019-04-24 18:24:16 +0100 |
---|---|---|
committer | Kai Wohlfahrt <kai@prodo.ai> | 2019-08-07 13:51:22 +0100 |
commit | dd0a9512797faa83bd1f974b10ef4d620200a79a (patch) | |
tree | 5b97f95445c6e3724520f184cdedd6d4d25d9827 /nixos/modules/system/activation/top-level.nix | |
parent | 0a477846af2837752687ced588b71108ff010bb2 (diff) | |
download | nixpkgs-dd0a9512797faa83bd1f974b10ef4d620200a79a.tar nixpkgs-dd0a9512797faa83bd1f974b10ef4d620200a79a.tar.gz nixpkgs-dd0a9512797faa83bd1f974b10ef4d620200a79a.tar.bz2 nixpkgs-dd0a9512797faa83bd1f974b10ef4d620200a79a.tar.lz nixpkgs-dd0a9512797faa83bd1f974b10ef4d620200a79a.tar.xz nixpkgs-dd0a9512797faa83bd1f974b10ef4d620200a79a.tar.zst nixpkgs-dd0a9512797faa83bd1f974b10ef4d620200a79a.zip |
nixos/hardware.deviceTree: new module
Add support for custom device-tree files, and applying overlays to them. This is useful for supporting non-discoverable hardware, such as sensors attached to GPIO pins on a Raspberry Pi.
Diffstat (limited to 'nixos/modules/system/activation/top-level.nix')
-rw-r--r-- | nixos/modules/system/activation/top-level.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index 5c88d27b6c6..f67d2900561 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -46,8 +46,8 @@ let ln -s ${kernelPath} $out/kernel ln -s ${config.system.modulesTree} $out/kernel-modules - ${optionalString (pkgs.stdenv.hostPlatform.platform.kernelDTB or false) '' - ln -s ${config.boot.kernelPackages.kernel}/dtbs $out/dtbs + ${optionalString (config.hardware.deviceTree.package != null) '' + ln -s ${config.hardware.deviceTree.package} $out/dtbs ''} echo -n "$kernelParams" > $out/kernel-params |