about summary refs log tree commit diff
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorBen Wolsieffer <benwolsieffer@gmail.com>2022-06-17 21:29:29 -0400
committerBen Wolsieffer <benwolsieffer@gmail.com>2022-06-18 22:24:30 -0400
commit8e4b3323d1a6ae7911ae29bd319cd75f1d41b8aa (patch)
tree1b8df4781bb4e556269c50a9407490b26112fc02 /nixos/modules/hardware
parentd64abb978cc2fa4b88b074a64d1b456183c8db17 (diff)
nixos/device-tree: use new overlay syntax in example
Since dtc 1.4.7 (released in 2018), there has been a much nicer syntax for
device tree overlays. This commit converts the dtsText example to use this
syntax.
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r--nixos/modules/hardware/device-tree.nix13
1 files changed, 5 insertions, 8 deletions
diff --git a/nixos/modules/hardware/device-tree.nix b/nixos/modules/hardware/device-tree.nix
index be67116ad507d..682b4bc0d7576 100644
--- a/nixos/modules/hardware/device-tree.nix
+++ b/nixos/modules/hardware/device-tree.nix
@@ -36,14 +36,11 @@ let
           /plugin/;
           / {
                   compatible = "raspberrypi";
-                  fragment@0 {
-                          target-path = "/soc";
-                          __overlay__ {
-                                  pps {
-                                          compatible = "pps-gpio";
-                                          status = "okay";
-                                  };
-                          };
+          };
+          &{/soc} {
+                  pps {
+                          compatible = "pps-gpio";
+                          status = "okay";
                   };
           };
         '';