From 4d2f96726aa07da88d69209b7ffd3f12efd5d0da Mon Sep 17 00:00:00 2001 From: Assil Ksiksi Date: Mon, 6 Nov 2023 23:03:42 -0500 Subject: [PATCH] remove enable option --- flake.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 210b838..1c94f14 100644 --- a/flake.nix +++ b/flake.nix @@ -42,7 +42,6 @@ in { options.compose2nix = { # https://nixos.org/manual/nixos/stable/#sec-option-declarations - enable = mkEnableOption "compose2nix"; paths = mkOption { type = types.listOf types.pathInStore; description = lib.mdDoc "One or more paths to Docker Compose files."; @@ -88,7 +87,7 @@ description = lib.mdDoc "Regex pattern for Docker Compose services to include."; }; }; - configs = mkIf cfg.enable { + configs = mkIf (cfg.paths != []) { compose2nix = { output = pkgs.runCommand "run-compose2nix" { buildInputs = [ pkgs.compose2nix ];