mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +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
|
|
@ -33,10 +33,12 @@ in
|
|||
assertion = lib'.isTailscaleDomain cfg.domain;
|
||||
message = "Filebrowser isn't yet configured with access controll.";
|
||||
}
|
||||
{
|
||||
assertion = !lib.pathExists "${modulesPath}/services/web-apps/filebrowser.nix";
|
||||
message = "TODO: Use filebrowser module from stable nixpkgs";
|
||||
}
|
||||
];
|
||||
|
||||
warnings = lib.optional (lib.pathExists "${modulesPath}/services/web-apps/filebrowser.nix") "TODO: Use filebrowser module from stable nixpkgs";
|
||||
|
||||
meta = {
|
||||
domains.list = [ cfg.domain ];
|
||||
ports.tcp.list = [ cfg.port ];
|
||||
|
|
|
|||
|
|
@ -25,9 +25,11 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
warnings = lib.optional (
|
||||
(lib.versionAtLeast pkgs.forgejo.version pinnedVersion) && (pkgs.forgejo.version != pinnedVersion)
|
||||
) "TODO: Use forgejo package from stable nixpkgs";
|
||||
assertions = lib.singleton {
|
||||
assertion =
|
||||
(lib.versionOlder pkgs.forgejo.version pinnedVersion) || (pkgs.forgejo.version == pinnedVersion);
|
||||
message = "TODO: Use forgejo package from stable nixpkgs";
|
||||
};
|
||||
|
||||
meta = {
|
||||
domains.list = [ cfg.domain ];
|
||||
|
|
|
|||
|
|
@ -68,7 +68,10 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
warnings = lib.optional (lib.versionAtLeast lib.version "25.11") "TODO: Use gatus package from stable nixpkgs";
|
||||
assertions = lib.singleton {
|
||||
assertion = lib.versionOlder lib.version "25.11";
|
||||
message = "TODO: Use gatus package from stable nixpkgs";
|
||||
};
|
||||
|
||||
meta = {
|
||||
domains.list = [ cfg.domain ];
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,10 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
warnings = lib.optional (lib.versionAtLeast lib.version "25.11") "TODO: Use privatebin package from stable nixpkgs";
|
||||
assertions = lib.singleton {
|
||||
assertion = lib.versionOlder lib.version "25.11";
|
||||
message = "TODO: Use privatebin package from stable nixpkgs";
|
||||
};
|
||||
|
||||
meta = {
|
||||
domains.list = [ cfg.domain ];
|
||||
|
|
|
|||
|
|
@ -25,7 +25,10 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
warnings = lib.optional (lib.versionAtLeast lib.version "25.11") "TODO: Use victorialogs package from stable nixpkgs";
|
||||
assertions = lib.singleton {
|
||||
assertion = lib.versionOlder lib.version "25.11";
|
||||
message = "TODO: Use victorialogs package from stable nixpkgs";
|
||||
};
|
||||
|
||||
meta = {
|
||||
domains.list = [ cfg.domain ];
|
||||
|
|
|
|||
|
|
@ -21,7 +21,10 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
warnings = lib.optional (lib.versionAtLeast lib.version "25.11") "TODO: Use victoriametrics package from stable nixpkgs";
|
||||
assertions = lib.singleton {
|
||||
assertion = lib.versionOlder lib.version "25.11";
|
||||
message = "TODO: Use victoriametrics package from stable nixpkgs";
|
||||
};
|
||||
|
||||
meta = {
|
||||
domains.list = [ cfg.domain ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue