nix: use importApply instead of importing modules directly

This commit is contained in:
pengo 2026-06-08 18:52:58 -06:00
parent d463b4e168
commit 626c8806b5
2 changed files with 4 additions and 3 deletions

View file

@ -21,6 +21,6 @@ in
inherit package;
nixosModule = importApply ./nix/nix-module.nix package;
nixosModule = importApply ./nix/nixos-module.nix package;
hmModule = importApply ./nix/hm-module.nix package;
}

View file

@ -13,6 +13,7 @@
scenefx,
}: let
inherit (nixpkgs.lib) genAttrs;
inherit (nixpkgs.lib.modules) importApply;
# Systems mangowm supports. Options that call `forEachSystem` will generate an attribute for each of these options.
systems = [
@ -62,12 +63,12 @@
nixosModules.mango = {pkgs, ...}: {
imports = [
(import ./nix/nixos-module.nix self.packages.${pkgs.stdenv.hostPlatform.system}.default)
(importApply ./nix/nixos-module.nix self.packages.${pkgs.stdenv.hostPlatform.system}.default)
];
};
hmModules.mango = {pkgs, ...}: {
imports = [
(import ./nix/hm-module.nix self.packages.${pkgs.stdenv.hostPlatform.system}.default)
(importApply ./nix/hm-module.nix self.packages.${pkgs.stdenv.hostPlatform.system}.default)
];
};