diff --git a/modules/programs/nh.nix b/modules/programs/nh.nix index ff4fc55b..f660e7bd 100644 --- a/modules/programs/nh.nix +++ b/modules/programs/nh.nix @@ -1,15 +1,11 @@ { config, - osConfig, lib, pkgs, ... }: - let - cfg = config.programs.nh; - in { meta.maintainers = with lib.maintainers; [ johnrtitor ]; @@ -60,12 +56,8 @@ in config = { warnings = - (lib.optional (cfg.clean.enable && osConfig != null && osConfig.nix.gc.automatic) - "programs.nh.clean.enable and nix.gc.automatic (system-wide in configuration.nix) are both enabled. Please use one or the other to avoid conflict." - ) - ++ (lib.optional (cfg.clean.enable && config.nix.gc.automatic) - "programs.nh.clean.enable and nix.gc.automatic (Home-Manager) are both enabled. Please use one or the other to avoid conflict." - ); + lib.optional (cfg.clean.enable && config.nix.gc.automatic) + "programs.nh.clean.enable and nix.gc.automatic (Home-Manager) are both enabled. Please use one or the other to avoid conflict."; home = lib.mkIf cfg.enable { packages = [ cfg.package ];