From e158702cb8e39dc484c594a8bd733ca623f3309c Mon Sep 17 00:00:00 2001 From: Olof Sandell <83674246+osandell@users.noreply.github.com> Date: Mon, 11 Sep 2023 22:45:11 +0200 Subject: [PATCH] refactor: use nixpkgs naming conventions --- apple/t2/README.md | 2 +- apple/t2/default.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apple/t2/README.md b/apple/t2/README.md index 2ae733a..4442395 100644 --- a/apple/t2/README.md +++ b/apple/t2/README.md @@ -25,7 +25,7 @@ Upon activation, this module performs the following: 1. Add this into your `configuration.nix`: ``` -appleT2Config.enableAppleSetOsLoader = true; +hardware.apple-t2.enableAppleSetOsLoader = true; ``` 2. **Rebuild your system**: diff --git a/apple/t2/default.nix b/apple/t2/default.nix index 739b194..359748a 100644 --- a/apple/t2/default.nix +++ b/apple/t2/default.nix @@ -37,12 +37,12 @@ let ''; }; - t2Cfg = config.appleT2Config; + t2Cfg = config.hardware.apple-t2; in { options = { - appleT2Config.enableAppleSetOsLoader = lib.mkOption { + hardware.apple-t2.enableAppleSetOsLoader = lib.mkOption { default = false; type = lib.types.bool; description = "Whether to enable the appleSetOsLoader activation script.";