Skip to content

Commit

Permalink
assert correct sourcesStore in nixos
Browse files Browse the repository at this point in the history
  • Loading branch information
cottand committed Dec 17, 2023
1 parent dbb17ef commit 0bc56c8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@
};
};
assertions = [
# {
# assertion = cfg.configuration.blocking.sourcesStore == cfg.;
# message = "Only one of services.leng.configuration or services.leng.configurationText may be set";
# }
{
assertion = cfg.configuration.blocking.sourcesStore == "/var/lib/leng-sources";
message = ''
`services.leng.configuration.blocking.sourcesStore` should be set to `var/lib/leng-sources`, but it is set to ${cfg.configuration.blocking.sourcesStore}.
'';
}
];
};
};
Expand Down

0 comments on commit 0bc56c8

Please sign in to comment.