packages feed

arion-compose-0.1.0.0: src/nix/modules/service/default-exec.nix

{ config, lib, ... }:
let
  inherit (lib) types mkOption;
in
{
  options = {
    service.defaultExec = mkOption {
      type = types.listOf types.str;
      default = ["/bin/sh"];
      description = ''
        Container program and arguments to invoke when calling
        <code>arion exec &lt;service.name></code> without further arguments.
      '';
    };
  };
  config = {
    out.extendedInfo.defaultExec = config.service.defaultExec;
  };
}