mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Remove . at the end of assertion messages
This commit is contained in:
parent
66d5263aca
commit
313a3d8138
3 changed files with 5 additions and 5 deletions
|
|
@ -10,7 +10,7 @@
|
|||
config = lib.mkIf config.custom.services.cliphist.enable {
|
||||
assertions = lib.singleton {
|
||||
assertion = config.custom.programs.rofi.enable;
|
||||
message = "Cliphist requires Rofi.";
|
||||
message = "Cliphist requires Rofi";
|
||||
};
|
||||
|
||||
services.cliphist = {
|
||||
|
|
|
|||
|
|
@ -41,11 +41,11 @@ in
|
|||
assertions = [
|
||||
{
|
||||
assertion = config.custom.services.tailscale.enable;
|
||||
message = "Syncthing requires tailscale.";
|
||||
message = "Syncthing requires tailscale";
|
||||
}
|
||||
{
|
||||
assertion = cfg.isServer -> (cfg.gui.domain != null);
|
||||
message = "Running syncthing on a server requires `gui.domain` to be set.";
|
||||
message = "Running syncthing on a server requires `gui.domain` to be set";
|
||||
}
|
||||
{
|
||||
assertion = (cfg.gui.domain != null) -> (lib'.isTailscaleDomain cfg.gui.domain);
|
||||
|
|
|
|||
|
|
@ -51,14 +51,14 @@ in
|
|||
|> lib.filter (name: name != "system")
|
||||
|> lib.map (name: {
|
||||
assertion = cfg.collect.metrics.${name} -> config.services.${name}.enable;
|
||||
message = "Collecting ${name} metrics requires the ${name} service to be enabled.";
|
||||
message = "Collecting ${name} metrics requires the ${name} service to be enabled";
|
||||
});
|
||||
logsAssertions =
|
||||
cfg.collect.logs
|
||||
|> lib.attrNames
|
||||
|> lib.map (name: {
|
||||
assertion = cfg.collect.logs.${name} -> config.services.${name}.enable;
|
||||
message = "Collecting ${name} logs requires the ${name} service to be enabled.";
|
||||
message = "Collecting ${name} logs requires the ${name} service to be enabled";
|
||||
});
|
||||
in
|
||||
metricsAssertions ++ logsAssertions;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue