From 996451dbe2bd6286cf17ccdc771890e174826535 Mon Sep 17 00:00:00 2001 From: taylrfnt Date: Tue, 6 Jan 2026 20:44:40 -0600 Subject: [PATCH 1/2] flake: add darwinModule --- docs/manual/release-notes/rl-0.9.md | 12 ++++++++++++ flake.nix | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/docs/manual/release-notes/rl-0.9.md b/docs/manual/release-notes/rl-0.9.md index 9b5d2d29..12c28977 100644 --- a/docs/manual/release-notes/rl-0.9.md +++ b/docs/manual/release-notes/rl-0.9.md @@ -13,6 +13,18 @@ ## Changelog {#sec-release-0-9-changelog} +[taylrfnt](https://github.com/taylrfnt) + +- Introduce a `darwinModule` option for Darwin users. The ergonomics of + importing a `nixosModule` into a Darwin flake were less than ideal, and when + users fork and update npins, they are prone to encountering errors like the + following: + + ```shell + (class: "nixos") cannot be imported into a module + evaluation that expects class "darwin". + ``` + [suimong](https://github.com/suimong): - Fix `vim.tabline.nvimBufferline` where `setupOpts.options.hover` requires diff --git a/flake.nix b/flake.nix index bd4c1149..5fd9b732 100644 --- a/flake.nix +++ b/flake.nix @@ -53,6 +53,11 @@ '' self.nixosModules.nvf; }; + + darwinModules = { + nvf = import ./flake/modules/nixos.nix {inherit lib inputs;}; + default = self.darwinModules.nvf; + }; }; perSystem = {pkgs, ...}: { From eab22435ac7e72998be92c2e7a2fab314cc43605 Mon Sep 17 00:00:00 2001 From: taylrfnt Date: Tue, 6 Jan 2026 21:01:17 -0600 Subject: [PATCH 2/2] meta: update pr template broken url --- .github/PULL_REQUEST_TEMPLATE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 66fe9c0f..04839ff6 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -24,8 +24,8 @@ it above in your description. --> [editorconfig]: https://editorconfig.org -[changelog]: https://github.com/NotAShelf/nvf/tree/main/docs/release-notes -[hacking nvf]: https://notashelf.github.io/nvf/index.xhtml#sec-guidelines +[changelog]: https://github.com/NotAShelf/nvf/tree/main/docs/manual/release-notes +[hacking nvf]: https://nvf.notashelf.dev/hacking.html#sec-guidelines - [ ] I have updated the [changelog] as per my changes - [ ] I have tested, and self-reviewed my code