From c5b3f42d6c69741ef04dffbd56d5adcc92e195d3 Mon Sep 17 00:00:00 2001 From: musjj <72612857+musjj@users.noreply.github.com> Date: Mon, 27 Apr 2026 01:16:41 +0700 Subject: [PATCH] nixos/nh: allow independent nh clean service --- nixos/modules/programs/nh.nix | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nixos/modules/programs/nh.nix b/nixos/modules/programs/nh.nix index 6ed9f1e919d2..baf8d920061f 100644 --- a/nixos/modules/programs/nh.nix +++ b/nixos/modules/programs/nh.nix @@ -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";