From 996451dbe2bd6286cf17ccdc771890e174826535 Mon Sep 17 00:00:00 2001 From: taylrfnt Date: Tue, 6 Jan 2026 20:44:40 -0600 Subject: [PATCH] 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, ...}: {