Skip to content

Commit

Permalink
remove enable option
Browse files Browse the repository at this point in the history
  • Loading branch information
aksiksi committed Nov 7, 2023
1 parent 0c78ff2 commit 4d2f967
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down Expand Up @@ -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 ];
Expand Down

0 comments on commit 4d2f967

Please sign in to comment.