mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31: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 {
|
config = lib.mkIf config.custom.services.cliphist.enable {
|
||||||
assertions = lib.singleton {
|
assertions = lib.singleton {
|
||||||
assertion = config.custom.programs.rofi.enable;
|
assertion = config.custom.programs.rofi.enable;
|
||||||
message = "Cliphist requires Rofi.";
|
message = "Cliphist requires Rofi";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.cliphist = {
|
services.cliphist = {
|
||||||
|
|
|
||||||
|
|
@ -41,11 +41,11 @@ in
|
||||||
assertions = [
|
assertions = [
|
||||||
{
|
{
|
||||||
assertion = config.custom.services.tailscale.enable;
|
assertion = config.custom.services.tailscale.enable;
|
||||||
message = "Syncthing requires tailscale.";
|
message = "Syncthing requires tailscale";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
assertion = cfg.isServer -> (cfg.gui.domain != null);
|
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);
|
assertion = (cfg.gui.domain != null) -> (lib'.isTailscaleDomain cfg.gui.domain);
|
||||||
|
|
|
||||||
|
|
@ -51,14 +51,14 @@ in
|
||||||
|> lib.filter (name: name != "system")
|
|> lib.filter (name: name != "system")
|
||||||
|> lib.map (name: {
|
|> lib.map (name: {
|
||||||
assertion = cfg.collect.metrics.${name} -> config.services.${name}.enable;
|
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 =
|
logsAssertions =
|
||||||
cfg.collect.logs
|
cfg.collect.logs
|
||||||
|> lib.attrNames
|
|> lib.attrNames
|
||||||
|> lib.map (name: {
|
|> lib.map (name: {
|
||||||
assertion = cfg.collect.logs.${name} -> config.services.${name}.enable;
|
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
|
in
|
||||||
metricsAssertions ++ logsAssertions;
|
metricsAssertions ++ logsAssertions;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue