modules: use assertions module from nixpkgs

It is essentially identical to our `warnings` module.
This commit is contained in:
Matt Sturgeon 2024-07-02 19:57:25 +01:00
parent d2afb176ff
commit 11df0d6c9e
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 1 additions and 17 deletions

View file

@ -15,6 +15,5 @@
./opts.nix ./opts.nix
./output.nix ./output.nix
./plugins.nix ./plugins.nix
./warnings.nix
]; ];
} }

View file

@ -8,6 +8,7 @@ in
imports = [ imports = [
./nixpkgs.nix ./nixpkgs.nix
./nixvim-info.nix ./nixvim-info.nix
(nixosModules + "/misc/assertions.nix")
(nixosModules + "/misc/meta.nix") (nixosModules + "/misc/meta.nix")
]; ];
} }

View file

@ -1,16 +0,0 @@
{ lib, ... }:
with lib;
{
options = {
warnings = mkOption {
type = types.listOf types.str;
visible = false;
default = [ ];
};
assertions = mkOption {
type = types.listOf types.attrs; # Not sure what the correct type is here
visible = false;
default = [ ];
};
};
}