nixos/nh: allow independent nh clean service

This commit is contained in:
musjj
2026-04-27 01:16:41 +07:00
parent c3e30f8ab2
commit c5b3f42d6c
-6
View File
@@ -76,12 +76,6 @@ in
[ ];
assertions = [
# Not strictly required but probably a good assertion to have
{
assertion = cfg.clean.enable -> cfg.enable;
message = "programs.nh.clean.enable requires programs.nh.enable";
}
{
assertion = (cfg.flake != null) -> !(lib.hasSuffix ".nix" cfg.flake);
message = "nh.flake must be a directory, not a nix file";