mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
Assert todos instead of warn
This commit is contained in:
parent
939030d505
commit
6edbfa0b42
8 changed files with 38 additions and 15 deletions
|
|
@ -29,9 +29,15 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
warnings = lib.concatLists [
|
||||
(lib.optional (lib.pathExists "${modulesPath}/services/misc/memos.nix") "TODO: Use memos module from stable nixpkgs")
|
||||
(lib.optional (lib.versionAtLeast lib.version "25.11") "TODO: Use memos package from stable nixpkgs")
|
||||
assertions = [
|
||||
{
|
||||
assertion = !lib.pathExists "${modulesPath}/services/misc/memos.nix";
|
||||
message = "TODO: Use memos module from stable nixpkgs";
|
||||
}
|
||||
{
|
||||
assertion = lib.versionOlder lib.version "25.11";
|
||||
message = "TODO: Use memos package from stable nixpkgs";
|
||||
}
|
||||
];
|
||||
|
||||
meta = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue