modules/misc: include assertions and meta modules in the repo

Based on the modules we previously imported from NixOS.

This will allow us to drop the `defaultPkgs` specialArg and avoids
needing the proposed `pkgsPath` specialArg.
This commit is contained in:
Matt Sturgeon 2024-09-24 02:58:37 +01:00
parent 901346e38b
commit 6da94195c2
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 92 additions and 8 deletions

View file

@ -1,15 +1,9 @@
{ defaultPkgs, ... }:
let
# We can't use config._module.args to define imports,
# so we're forced to use specialArgs.defaultPkgs's path
nixosModules = defaultPkgs.path + "/nixos/modules/";
in
{
imports = [
./assertions.nix
./context.nix
./meta.nix
./nixpkgs.nix
./nixvim-info.nix
(nixosModules + "/misc/assertions.nix")
(nixosModules + "/misc/meta.nix")
];
}